
使用
0代替
'0'。金额是数字,数字不加引号。
SELECt distinct CASE when t.cancelled = 'TRUE' then 0 else t.amount END AMOUNT,FROM table t
欢迎分享,转载请注明来源:内存溢出

使用
0代替
'0'。金额是数字,数字不加引号。
SELECt distinct CASE when t.cancelled = 'TRUE' then 0 else t.amount END AMOUNT,FROM table t
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)