1.as 别名
2.join on 关联 (inner join =join)
3.where条件
4.where uid between1 and 5#查询1-5之间的数据
where uid in (1,2,4)#查询uid为1,2,4的数据
where (uid=1 or uid=2 or uid=4)#查询uid为1,2,4的数据
5.group by #按---分组
order by#按--排序 asc:升序,desc:降序
6.distinct 不重复
count 查询该表所有记录的数据