type
status
date
slug
summary
tags
category
icon
password
Property
Jul 4, 2023 06:42 AM
  1. 使用not in 结合distinct
2.使用left join 做关联查询条件为关联表的id is null
3.充分利用count函数,若子查询的结果不为0,则表明该Id存在1条或多条,不会查询出词条记录,最高效

4.写出一张表中id和name 两个字段,查询出name 重复的所有数据:
5.查询出所有数据进行分组之后,和重复数据的重复次数的查询数据:
 
local storage☺Centos7