答案:
case when +条件 +then 显示什么 +else+显示另外什么+end
mysql小题趣事
原文:http://www.cnblogs.com/renfanzi/p/6433430.html