1、as :别名,可用户查询字段后 ,用户select name as nm from 表,也可用户子查询中 给查处的表起别名,as可不写空格
2、between 300 and 500:在300和500之间
3、like:模糊查询,_ 一个字符,% 一个或多个,还可接 not like '_3%' 查出第二位数不是3的数据
4、and:组合条件查询,两个都成立
5、or:组合条件查询,一个成立即可
6、group by:分组,也可在查询出字段的条件前加distinct
7、order by 字段:排序 desc:降序 asc:升序
8、表 join 表 on 连接字段:表和表的连接
1、inner join:内连接
2、left join:左外连接
3、right join:右外连接
4、full join:全外连接,迪卡儿集
9、union :并集,union all:有重复的
10、index:索引,查询的更快