关于空 b varchar2(10)where b = '' or b is null 和 where b is null 应该是一样的, 前面那个加上了 b = '' 我觉得一点用处没有。各位大虾,请指教,谢谢(当然b='' 和 b is null这两个的区别我是知道的。) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SQL> create table t2(idx int,cname nvarchar2(20));Table createdSQL> insert into t2 select 1,'' from dual;1 row insertedSQL> select * from t2 where cname is null; IDX CNAME--------------------------------------- ---------------------------------------- 1 SQL> select * from t2 where cname=''; IDX CNAME--------------------------------------- ---------------------------------------- 在SQL Server里面 '' 和 null 不是一样的不过在ORACLE 里面 '' 和 null 是一样的 救命啊!!!!!!大家帮我看看啊!!!!!在线等!!! 新手求解如下的SQL语句的意思 触发器的问题 高手帮忙来看看,莫名其妙的 ado.net 连接数据库出错:无法处理服务名 merge的疑问 急贴,oracle9i在linux下的安装问题!!!! oracle的数据导出问题 如何做到实时刷新表中的数据 我是新手想学习ORACLE,各位请指教! oracle数据库报错,应用连接不上,有详细错误代码,高分在线等大神 数据库间输入导出导入字符集求教 求一sql请大家帮忙!
SQL> create table t2(idx int,cname nvarchar2(20));Table createdSQL> insert into t2 select 1,'' from dual;1 row insertedSQL> select * from t2 where cname is null; IDX CNAME
--------------------------------------- ----------------------------------------
1 SQL> select * from t2 where cname=''; IDX CNAME
--------------------------------------- ----------------------------------------