Oracle 多字段的in

SELECT T.*
  FROM tableKIND T
 WHERE (T.column1, T.column2) IN
       (('1101', '1100100'), ('1102', '1102700'), ('1104', '1105200'),
        ('1105', '1105400'), ('1109', '1109000'), ('1207', '1207001'),
        ('2101', '2107100'), ('2102', '2107200'), ('3101', '3100100'),
        ('3105', '3102900'), ('3114', '3114001'), ('3115', '3104400'),
        ('3116', '3104500'), ('3117', '3117001'), ('3119', '3119001'),
        ('3120', '3120101'), ('5101', '5101001'), ('5104', '5104001'),
        ('5107', '5100006'), ('5121', '5121001'), ('5122', '5122001'),
        ('5130', '5100006'), ('6101', '6101001'), ('6111', '6111001'),
        ('6121', '6121001'), ('6122', '6122001'), ('6129', '6101001'),
        ('6130', '6130001'), ('7101', '7101001'), ('7102', '7102001'),
        ('7103', '7103001'));

pl/sql in查询可以使用多个字段. 上面的sql代码已经检验通过.

你可能感兴趣的:(Oracle 多字段的in)