1、select a.* from a,b where a.INST_ID = b.INST_ID and b.col = '条件';2、select b.INST_ID from b,
(select INST_ID,PRDT_ID,LINE_NO from b) m
where b.INST_ID <> m.INST_ID
and (b.PRDT_ID = m.PRDT_ID and b.LINE_NO = m.LINE_NO)
order by b.INST_ID
(select INST_ID,PRDT_ID,LINE_NO from b) m
where b.INST_ID <> m.INST_ID
and (b.PRDT_ID = m.PRDT_ID and b.LINE_NO = m.LINE_NO)
order by b.INST_ID
解决方案 »
- 64位VS2010下occi总是出问题,做过相关开发的大S帮忙
- Oracle [] 匹配符问题
- Ocale临时表问题
- 关于oracle读取远程文件服务器中的csv文件的问题。。。
- 选取字段的问题,大家快来帮忙呀,谢谢!
- 远程查询输入??50分
- Enterprise Manager控制台中导入数据时出现:“VTO-2018该向导无法启动,因为目标由手动配置。只有对于使用Intelligent Agent搜索到的目
- 请问在Windows2003上要安装Oracle11g的RAC,到哪里下载集群软件?
- 三个表的更改sql怎么写啊
- Oracle生僻字乱码怎样解决
- 求一sql或其他方法
- 如何让机器开机后自动启动监听?
select n.INST_ID
from
(select a.* from a,b where a.INST_ID = b.INST_ID and b.col = '条件') n,
(select a.* from a,b where a.INST_ID = b.INST_ID and b.col = '条件') m
where
b.INST_ID <> m.INST_ID and (b.PRDT_ID = m.PRDT_ID and b.LINE_NO = m.LINE_NO)
order by b.INST_ID
可能看起来有点重复,但是我没有更好的方法了!