1、排序 order by 升序 asc 降序 desc 语法: select 字段名,…… from 表名 [ where 条件] order by 字段 asc|desc,字段 asc|desc…… order by 后面的字段第一个表示主排序,其他为次排序 2、统计函数 count(字段):计数 max(字段):最大 min(字段) :最小 …
1、范围查询 in 确定值 select 字段名,…… from 表名 where 字段名 in(值,值,……) 2、between 值 and 值:在什么之间的,只能用数字 select 字段名,…… from 表名 where 字段名 between 值 and 值 3、计算列 select 计算(+-*/ 函数)字段 ,字段,…… from …