sql语句怎么写 啊?
解决方案 »
- 有关数据库创建问题,大哥们帮我看看。。。
- 如何在自定义控件中弹出的菜单分列并排显示?有没人有办法?
- 关于一个水库水纹的曲线问题
- 求文件操作的代码
- Inet控件中上载的路径、文件名中出现空格的问题
- 应选择查找再提问
- 不能打开数据库 ''。应用程序可能无法识别该数据库,或文件可能损坏。
- 用sndPlaySoundFromMemory播放背景音乐,如何知道已经播放完毕,以便循环播放?
- 乱码问题,请指教!
- MSFlexGrid生成excel的问题,在线等待~~~~~~~~~~~~~~!MSFlexGrid生成excel的问题,在线等待~~~~~~~~~~~~~~!
- 如何获得windows状态栏的高度,告急!
- vb如何求余数?????????????
union
select b.id from b where b.id not in (select a.id from a)
这样写可以吗?
select * from table1 where table1.id not in (select table2.id from table2)
union
select * from table2 where table2.id not in (select table1.id from table1)
union
select * from table2 where table2.id <> (select table1.id from table1)这样写为什么出错呢?
union
select * from table2 where table2.id <> (select table1.id from table1)
<> 换成 NOT IN 试试可能跟你的 DBMS 有关
UNION 有的引擎可能不支持
select id from table1 where id not exists (select id from table2)
union
select id from table2 where id not exists (select id from table1)