请问这个sql该怎么写?谢谢 select .. from table1,table2 where table1.xyc not in (select xyc from table2) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 应该是:select * from table1 where xyc not in (select xyc from table2) select .. from table1 where table1.xyc not in (select table2.xycfrom table2); 应该这么写:select xyc from table1 minus select xyc from table2 如果表很大,用in、not in速度太慢了,效率低下可以用下面的sql:select a.* from table1 a ,table2 b where a.xyc =b.xyc(+) and b.xyc is null Oracle数据的分区理论问题 急,急,多层数据库链接该如何解决? oracle安装后重启电脑不能使用 这样2条sql有差么? Oracle中数据转移问题 没有为约束条件""指定检查条件 关于存储过程 初来宝地,散分! 根据身份证号,性别查询查女性年龄超过55周岁的,男性年龄超过60周岁的 请教一个SQL 请大神们 指教 如何把Oracle中得数据库结构导成sql语句。(100分)在线等待。。。。 这个SQL语句怎么写?
select * from table1 where xyc not in (select xyc from table2)
from table2);
select xyc from table1 minus select xyc from table2
可以用下面的sql:
select a.* from table1 a ,table2 b
where a.xyc =b.xyc(+)
and b.xyc is null