select 列1 as 别名1, 列2 as 别名2 ,...
from 表1 as 表名1 left join 表2 as 表名2 on 表名1.字段=表名2.字段 ...
where 条件1 and/or 条件2 and/or?...
group by 列
having 条件1 and/or 条件2 and/or ...
order by 列1, 列2,...
limit m,n ; 从m处开始获取n条
Mysql完整的查询语句模板
最新推荐文章于 2024-08-03 21:25:25 发布