当前位置: 代码迷 >> Oracle开发 >> oracle 字符串的条件替换有关问题
  详细解决方案

oracle 字符串的条件替换有关问题

热度:28   发布时间:2016-04-24 07:23:10.0
oracle 字符串的条件替换问题
假如我想把表table中money小于0的用“欠费”来替换 ,money等于0的用“零”来替换,money大于0的用“有余额”来替换。

------解决方案--------------------
SQL code
select (case when money<0 then '欠费' when money=0 then '零' else '有余额' end) 账户余额信息 from 你的表;
  相关解决方案