可以简单的写成这个样子
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 ...
解决方案 »
- 通过spool导出文件宿主文件属性不是当前用户而是oralce
- 怎么Update 符合两个字段的 批量数据
- 如何利用Object Browser图形化工具提高Oracle开发工作效率(二)对象创建管理篇
- 存储过程有错误,哪位帮看下啊。。
- 100分求解:如果把一字符串根据特定的分割符划开返回一个结果集
- 怎么删除ORACLE9i中剩余文件
- 我在linux.0装oracle 8.1.7,为什么都是乱码/
- 请教,使用VC和OLEDB for Oracle 调用存储过程,不能返回字符串值,如何解决?
- 求助(重分求)
- cisoc交换机(2950—24)有关VLAN的设置???
- 用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))
)