mysql if()

类似三元运算符

select if(1,"男","女")

结果:

原文地址:https://www.cnblogs.com/zjfblog/p/7515549.html