摘要: select distinct 字段1,字段2,字段3.。from表名 where约束条件 group by 分组的字段 having 过滤条件 order by 排序字段 limit 限制条件 简单查询 SELECT id,name,sex,age,hire—date,post—comment,s 阅读全文
posted @ 2017-10-25 19:58 程绩 阅读(318) 评论(0) 推荐(1) 编辑
摘要: 一 单表查询语法 SELECT 字段1,字段2.。。。FROM 表名 WHERE条件 GROUP BY FIELD HAVING筛选 ORDER DY FIELD LIMIT 限制条数 二 关键字的执行优先级(重点) from where group by having select distinc 阅读全文
posted @ 2017-10-25 19:11 程绩 阅读(221) 评论(0) 推荐(0) 编辑