728x90
728x90

UNION ALL 등으로 연결해준 SELECT 문일 경우
위의 대응하는 갯수와 아래 대응하는 갯수가 일치해야 하며
각 순서의 데이터 유형도 동일해야 합니다!!!

예를들어 설명하자면 

SELECT 0 AS A1
  FROM DUAL
UNION ALL
SELECT '가나다' AS A1
   FROM DUAL



위 SELECT 문을 조회해보면 오류가 나타나는 것을 볼 수 있습니다~~
아래 SELECT 문의 '가나다'를 1로 변경하여 돌려보시면 
위 SELECT문의 첫번째 조회 값인 것과 데이터 유형(NUMBER)가 동일하여 오류가 발생되지 않습니다!!

해결 끝------ ( ̄︶ ̄)↗ 

728x90

+ Recent posts