标签:blog div c log r sql as 程序 tt
SELECT *,Sex= CASE WHEN Sex=1 THEN ‘男‘ WHEN Sex=0 THEN ‘女‘ END FROM Students
ps:在case语句中,以case...end程序块内用when语句做选择判断
case语句条件选择判断
原文地址:http://www.cnblogs.com/zwhFighting/p/4006767.html