摘要:
多表查询 连接两个或两个以上的表 交叉连接 两个表不设定任何条件进行连接 通常也被叫做笛卡尔积 语法 from 表1 join 表2 或者 from 表1,表2 内连接 from 表1 join 表2 on 表1.字段1 =表2.字段2 或 from 表1,表2 where 表1.字段1 =表2.字 阅读全文
摘要:
分组查询select sex ,count(*) from student group by sex 查询student里面每个性别有多少人 分组查询后筛选 select sex count(*) from student group by sex having 条件 数据约束 默认值 用户对默认值 阅读全文