👉 기본 환경
- Language: Oracle
⌨️ 코드
1
2
3
4
5
6
7
8
|
SELECT ANIMAL_ID,
ANIMAL_ID,
SEX_UPON_INTAKE
FROM ANIMAL_INS
WHERE NAME IN ('Lucy', 'Ella', 'Pickle', 'Rogan', 'Sabrina', 'Mitty')
ORDER BY ANIMAL_ID
;
|
🖨️오류
ORA-00960: ambiguous column naming in select list
📡 원인
SELECT절에 조회 COL Name이 중복됨
📰 해결 방법
1
2
3
4
5
6
7
8
|
SELECT ANIMAL_ID,
NAME,
SEX_UPON_INTAKE
FROM ANIMAL_INS
WHERE NAME IN ('Lucy', 'Ella', 'Pickle', 'Rogan', 'Sabrina', 'Mitty')
ORDER BY ANIMAL_ID
;
|
중복된 COL Name 삭제
'DataBase > Oracle with Error' 카테고리의 다른 글
[해결 방법] ORA-00932: inconsistent datatypes: expected DATE got NUMBER (0) | 2023.09.17 |
---|---|
[해결 방법] ORA-01861: literal does not match format string (0) | 2023.09.17 |
[해결 방법] ORA-00907: missing right parenthesis (0) | 2023.08.28 |
[해결 방법] ORA-01427: single-row subquery returns more than one row (0) | 2023.08.28 |
[해결 방법] ORA-00936: missing expression (0) | 2023.08.26 |