可以简单的写成这个样子
and (e.type,e.id) in(
select 1,fid from o_Leasecircuit_Require
union all
select 2,fid from o_Leasecircuit_fix
union all
select 3,fid from o_Leasecircuit_attemper )
and ...
and (e.type,e.id) in(
select 1,fid from o_Leasecircuit_Require
union all
select 2,fid from o_Leasecircuit_fix
union all
select 3,fid from o_Leasecircuit_attemper )
and ...
解决方案 »
- BIEE与oracle连接的问题
- 连接oracle数据库
- 用PLSQL连接服务器,是不是要先在本地先开启oracle的服务?
- Oracle数据库越来越慢该如何处理?
- 关于blob类型的问题,求助
- 求教,如何提升数据插入的效率?
- 如何把lotus的数据导入到Oracle中啊?简单类型的我已经作了,对于RTF域和附件呢?
- 关于两个表之间导数据的问题!
- 对于数据库中越来越多的归档日志有啥好的处理办法,是否删除了归档日志就会影响数据库以后的恢复
- 100分请教
- 用DBLink时,出现错误ORA-12154: TNS: 无法解析指定的连接标识符
- DBA常见面试题征集答案,并希望达人补充,希望此贴让所有想做DBA的人有点方向。
没有见过case写在表名字前面的
... and
(
(e.type = 1 and e.id in (select fid from o_Leasecircuit_Require ))
or
(e.type = 2 and e.id in (select fid from o_Leasecircuit_fix ))
or
(e.type != 1 and e.type != 2 and e.id in (select fid from o_Leasecircuit_attemper))
)