日期:2014-05-17  浏览次数:20909 次

oracle 字符串的条件替换问题
假如我想把表table中money小于0的用“欠费”来替换 ,money等于0的用“零”来替换,money大于0的用“有余额”来替换。

------解决方案--------------------
SQL code

select (case when money<0 then '欠费' when money=0 then '零' else '有余额' end) 账户余额信息 from 你的表;