请教如何写这个SQL条件 一个表A中有4个字段a1 a2 a3 a4我想控制在a1,a2两个字段同时为空时,不显示数据,当有一个字段不为空时,就显示数据,请教如何写WHERE条件。谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from (select decode(trim(a1 || a2), null, 1, 0) data from a) t where t.data = 1 晕着急写错了select a1, a2, a3, a4 from (select decode(trim(a1 || a2), null, 1, 0) data, a1, a2, a3, a4 from t1) t where t.data = 0 select * from table where a1 is not null or a2 is not null where a1 is not null and a2 is not null 关于oracle导出csv文件科学计数法问题! 各位朋友,求sql,帮个忙 windowsXP在域里面安装oracle10g后连不上实例,请大家帮忙看看。 oracle存储过程游标返回问题 oracle 存储过程如何定义 使用 多维数组。 oracle里插入删除数据的问题? 求一sql语句 Oracle 的连接服务器问题 为什么我show user的时候显示user 为“”? 一个导入数据表的问题?急!! supershb(phenix)请进. 能否从oracle日志文件中获取最近对数据库的操作 天下无奇不有,关于oracle和Hibernate的,望遇过者指点!不胜感激!
from (select decode(trim(a1 || a2), null, 1, 0) data from a) t
where t.data = 1
select a1, a2, a3, a4
from (select decode(trim(a1 || a2), null, 1, 0) data, a1, a2, a3, a4
from t1) t
where t.data = 0