正确的格式:
case when condition then result when condition then result when condition then result else result end
注意事项:
稍不注意就会写成如下错误的格式:
case when condition then result case when condition then result case when condition then result else result end
参考:
https://www.cnblogs.com/xp796/p/8042100.html
https://blog.csdn.net/helloxiaozhe/article/details/78124138
https://www.cnblogs.com/renpei/p/5485730.html
全文完
:)
版权声明:本文为博主原创文章,未经博主允许不得转载。原文地址:https://www.cnblogs.com/poterliu/p/9644892.html 联系邮箱:[email protected] 联系微信:poterliu 或者扫二维码 |