一、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;