报表中需要显示收款情况,如收到“微信”、“支付宝”等。数据来源是表中的“收款方式”,但有时会碰到如无收到“支付宝”之类的,则无法正常显示及运算。该如何处理?
用select (case when money is null then 0 else money end )from .....