select * from de_hd where nsrshh not in (select distinct nsrsbh from dj_dejk);或者用
select * from de_hd where not exists (select nsrsbh from dj_dejk where nsrsbh=de_hd.nsrsbh)
select * from de_hd where not exists (select nsrsbh from dj_dejk where nsrsbh=de_hd.nsrsbh)
解决方案 »
- oracle 权限问题, 很奇怪, 除了system用户能登陆,其他所有用户都不能登录了
- 通过索引访问表的顺序问题
- 请教oracle存储过程,如何记录错误发生所在行?如何记录某语句更新了多少行?
- oracle时间函数
- oracle查询效率:一次查询100万条记录 VS 100万次查询,每次查一条记录
- Oracle导入文本文件
- linux as4.0下利用cron实现oracle定时备份问题!!!-高手们帮帮忙啊!
- 如何在ASP中调用Orcale里的函数?
- 如何取得创建VIEW的SQL
- ODBC连接ORACLE出错
- 求教:使用sqlServer的DTS功能导入数据出错;
- 以时间作为主键有问题吗?
(select 1 from dj_dejk where de_hd.nsrsbh=dj_dejk.nsrsbh);
not exist (查询语句可以返回结果集即可)