group by 字段1,字段2,… 分组
    
    where 字段 = 值 条件,用在from 表名 的后面
    
    group by sex having sex=‘男’ 分组后having过滤,用在group by 的后面
    
    count(*) 结果的数量
    
    avg(avg) 字段的平均数
    
    max(age) 字段的最大值
    
    min(age) 字段的最小值
    
    limit 索引,条数 分页,索引从0开始,条数以行为单位
    
    order by 字段 排序,默认从小到大
    
    = != < > <= >= 比较运算,where 后用
    
    and or 逻辑运算,where 后多个条件中间连接用
    
    not 逻辑源算,where 后,条件前用
    
    % 任意多个字符
    
    — 任意一个字符
    
    like 模糊查询:where name like ‘张__’
    
    in(‘范围1’,‘范围2’,…) 范围查询:where age in(‘12’,‘14’,‘53’)
    
    between 范围数字1 and 范围数字2 范围查询,数字1
    
    where form1.field1=from2.field2 连接查询(产生迪卡尔积,生成缓存,占用内存)
    
    form1 inner join form2 on 连接条件 內连接查询(不产生临时表缓存,性能高)
    
    age=(select * from …) 子查询,以一个select语句作为查询条件
   
 
