一、limit 语句sql
限制返回的行数code
二、列别名it
count(1) as times table
三、嵌套select语句class
select xxx from (select xx from table1 ) a ;select
四、case ...when ...then语句im
用户处理单个列的查询结果查询
select name, case when salay <50000 then 'low' when salay >=50000 and salary <70000 then 'middle' else 'high' end as bracket from employee;