SQL的case语句

case    when col in (1,2)   then   '男'

             when col in (3,4)   then   '女'

             else   '未知'

end

 

你可能感兴趣的:(SQL,case语句)