1. case when then 多路分支
如:Users表(字段:UserID、UserType、UserName)
select UserID,
case when UserType = 0 then 'hight'
when UserType = 1 then 'low'
else 'middle'
end as level, UserName
from Users
2. inner join 内连接
3. left outer join 和 right outer join 外联连
4. full outer join 外部连接