Oracle/ORA-
ORA-01795: 목록에 지정 가능한 식의 최대수는 1000 입니다
밥돌이밥순이
2023. 10. 17. 13:31
반응형
" ORA-01795: maximum number of expressions in a list is 1000 "에러 해결 방법
ORA-01795 Cause: Number of expressions in the query exceeded than 1000. Note that unused column/expressions are also counted Maximum number of expressions that are allowed are 1000.
ORA-01795 원인 : 쿼리의 식 수가 1000을 초과했습니다. 사용되지 않은 열 / 식도 계산됩니다. 허용되는 최대 식 수는 1000입니다.
UPDATE TABLE
SET COL1 =1
WHERE COL2 IN ('1','2',.....'101')
ORA-01795 Action: Reduce the number of expressions in the list and resubmit.
ORA-01795 해결 1.IN 안에 값이 100 이상으면 오류 발생
ORA-01795 해결 2. IN 값을 서브 퀴리로 변경
IN (SELECT C1 FROM TB UNOIN ALL
SELECT C1 FROM TB
)
반응형