본문 바로가기

Errors

ORA-00923: FROM keyword not found where expected

bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected

------------------------------

 

원인: 

"from"이 있어야 할 자리에 from keyword가 없다

===> select 컬럼명, 컬렴명, 컬럼명 

중에서 컬럼명 끝에 ","가 붙지 않을 경우 경우 곧바로 from 절이 나와야 하는데 나오지 않아 발생하는 문제

1) select하는 컬럼과 컬럼 사이에 ','가 빠졌거나

2) from 키워드가 누락되었거나

 

해결: 

 

컬럼 ~ 컬럼 사이에 , 가 빠진것이 있는지 휘리릭 둘러보고 빠진 자리에 추가해주니 해결