ORA-00920无效的关系运算符*其中子句错误帮助*

时间:2015-11-21 17:23:46

标签: oracle

我正试图在这个巨大的查询中查看运算符错误。似乎操作员在这一切中都是错误的。有专家可以帮帮我吗?谢谢大家帮助我

INSERT
    INTO FORUORH
      (
        FORUORH_USER_ID_ENTERED,
        FORUORH_COAS_CODE,
        FORUORH_ORGN_CODE,
        FORUORH_ACCESS_IND,
        FORUORH_ACTIVITY_DATE,
        FORUORH_USER_ID,
        FORUORH_END_DATE,
        FORUORH_WBUD_ACCESS_IND
      )
    SELECT FORUSOR_USER_ID_ENTERED,
      FORUSOR_COAS_CODE,
      FORUSOR_ORGN_CODE,
      FORUSOR_ACCESS_IND,
      FORUSOR_ACTIVITY_DATE,
      FORUSOR_USER_ID,
      SYSDATE,
      FORUSOR_WBUD_ACCESS_IND
    FROM FORUSOR
    WHERE FORUSOR_USER_ID_ENTERED                 = :KEY_BLOCK_USER_ID
    AND ((FORUSOR_COAS_CODE, FORUSOR_ORGN_CODE)) IN (
      (SELECT FORUSOR_COAS_CODE,
        FORUSOR_ORGN_CODE
      FROM FORUSOR
      WHERE FORUSOR_COAS_CODE LIKE NVL(:KEY_BLOCK_INCLUDE_COAS_CODE, '%')
      AND FORUSOR_ORGN_CODE LIKE NVL(:KEY_BLOCK_INCLUDE_ORGN_CODE, '%')
      AND FORUSOR_USER_ID_ENTERED = :KEY_BLOCK_USER_ID
      MINUS
      SELECT FORUSOR_COAS_CODE,
        FORUSOR_ORGN_CODE
      FROM FORUSOR
      WHERE FORUSOR_COAS_CODE LIKE NVL(:KEY_BLOCK_EXCLUDE_COAS_CODE, '%')
      AND FORUSOR_ORGN_CODE LIKE NVL(:KEY_BLOCK_EXCLUDE_ORGN_CODE, '#')
      AND FORUSOR_USER_ID_ENTERED = :KEY_BLOCK_USER_ID
      )) ";

1 个答案:

答案 0 :(得分:1)

((FORUSOR_COAS_CODE, FORUSOR_ORGN_CODE))向量应为(FORUSOR_COAS_CODE, FORUSOR_ORGN_CODE)