sql 数组Not in问题 有个语句,想向各位高手请教下我有A表,同时有B表A表有两个字段和B表相同我想取得A表中这两个字段的组合不在B表的所有值,这个应该怎么写?谢谢指导! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 表B where (表B.列1 + 表B.列2) not in (select 表A.列1 + 表A.列2 from 表A) select * from 表A where (表A.列1 + 表A.列2) not in (select 表B.列1 + 表B.列2 from 表B) select *from awhere not exists(select 1 from b where col1=a.col1 and col2=a.col2) 帮忙看看我的外围应用配置是不是少了什么?谢谢。 汇总的问题。 这个左连接怎么写? 求一update语句? SQL联机帮助坏了,谁能告诉我怎样把别人机器上的复制过来? 请问这个SQL语句改成一条语句怎么改呀?? 存储过程的问题!! 把数据存储到文本文件 系统已经不能启动,重装后如何恢复sql6.5中的数据库数据 应用,自动生成编号,如何解决并发问题。 聚集索引和非聚集索引优先问题 sql查询时能否将值替换成别的字符?
select * from 表B where (表B.列1 + 表B.列2) not in (select 表A.列1 + 表A.列2 from 表A)
select * from 表A where (表A.列1 + 表A.列2) not in (select 表B.列1 + 表B.列2 from 表B)
*
from
a
where
not exists(select 1 from b where col1=a.col1 and col2=a.col2)