select 的时候如何指定字段默认值 有一列有的数据没填,select 出来的时候怎么让没有数据的记录自动变成0? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select nvl(your_column, 0) from your_table; select nvl(column, 0) from tablename; nvl(col,0)case when col = '' then '0' endDECODE(col,'','0') nvl(col,0)case when col is null then 0 else col endDECODE(col,'',0,col) nvl(col,0)case when col is null then 0 else col endDECODE(col,'',0,col)额,我写错了。谢谢minitoy。学习中…… 数据库权限问题! 一个很复杂的sql报表麻烦各位高人看看! 表数据批量更新问题,急急急!!!!! orcle安装过程中不动了 Oracle日期查询 表的设计问题:关于列的拆分 牢烦大家看看 急、急、权限问题!! ORACLE列名最大宽度是多少 如何动态改边查询语句中的表名或字段名? .bash_profile 需要每次source 关于ORACLE客户端字符集和服务器字符集 Sql:在一张表求出迟到及正常的信息
case when col = '' then '0' end
DECODE(col,'','0')
case when col is null then 0 else col end
DECODE(col,'',0,col)
case when col is null then 0 else col end
DECODE(col,'',0,col)
额,我写错了。谢谢minitoy。
学习中……