【问题标题】:pairwise comparison oracle成对比较预言机
【发布时间】:2019-01-15 21:21:06
【问题描述】:

是否有可能将这些查询写入一个查询:

select code from carp.site where CODE_ADAM='038547' and CODE_IMPLANTATION='ND038547' and CODE_POSTAL='73479';
select code from carp.site where CODE_ADAM='034587' and CODE_IMPLANTATION='ND034587' and CODE_POSTAL='01994';
select code from carp.site where CODE_ADAM='037929' and CODE_IMPLANTATION='ND037929' and CODE_POSTAL='27367';
select code from carp.site where CODE_ADAM='038596' and CODE_IMPLANTATION='ND038596' and CODE_POSTAL='45721';

【问题讨论】:

    标签: sql oracle11g comparison


    【解决方案1】:

    使用ORIN

    select code
    from carp.site
    where (CODE_ADAM, CODE_IMPLANTATION, CODE_POSTAL) IN
             (('038547', 'ND038547', '73479'), 
              ('ND034587', '01994', '037929'),
              . . .
          );
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多