各位大哥小弟表达详细一点感谢你们看看sql语句怎么写? select a.p1,a.p2,a.p3 from ww1 aminusselect b.l1,b.l2,b.l3 from ww2 b 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select t.P1,t.P2 from tablename t,(select P1,P2 from tablename) awhere t.P1=a.P1 and t.P1!=a.P2 {select a.p1,a.p2,a.p3 from ww1 aminusselect b.l1,b.l2,b.l3 from ww2 b}上面这个方法是可以的但是 如果我的ww2不是三列只有L1,L2两列 只要不同时满足这两个条件就显示, 那我想根据判断算出来之后怎么显示第一个ww1表呢 查找ww1中p1和p2数据列不存在于ww2数据的写法:select a.* from ww1 awhere not exits (select 1 from ww2 b where a.p1=b.L1 and a.p2=b.L2) oracle function怎么写 Rac安装dbca找不到asm硬盘(iscsi创建),报错ORA-03113,急等帮助 oracle 9i sql语句问题 索引如果同步? 求救一個SQL語句 请帮高手看一下如下代码在oracle8中运行有什么不对。谢谢! 我要查与某条记录相隔时间最端的哪条记录的sql怎么写? 分区后锁定解决 请问一个有关CONCAT的简单问题 登陆OEM时“提供的登录身份证明无效”是何原因? oracle中要查询某个时间段(年月日)内的记录,SQL语句怎么写最方便? [求助]C#中用OracleClient连接Oracle时,连接字符串怎么写?
where t.P1=a.P1 and t.P1!=a.P2
minus
select b.l1,b.l2,b.l3 from ww2 b}
上面这个方法是可以的但是 如果我的ww2不是三列只有L1,L2两列 只要不同时满足这两个条件就显示, 那我想根据判断算出来之后怎么显示第一个ww1表呢
select a.*
from ww1 a
where not exits (select 1 from ww2 b where a.p1=b.L1 and a.p2=b.L2)