른록노트

[Oracle] java.sql.SQLSyntaxErrorException: ORA-00911: 문자가 부적합합니다 출처: http://powerofwriting.tistory.com/entry/Oracle-javasqlSQLSyntaxErrorException-ORA00911-문자가-부적합합니다 본문

DB/[Oracle]

[Oracle] java.sql.SQLSyntaxErrorException: ORA-00911: 문자가 부적합합니다 출처: http://powerofwriting.tistory.com/entry/Oracle-javasqlSQLSyntaxErrorException-ORA00911-문자가-부적합합니다

른록 2018. 10. 18. 16:17

@ 원인


JDBC 연동시, 쿼리 작성하는 부분에 세미콜론 있는지 확인한다.

PreparedStatement pstmt = conn.prepareStatement("insert into customer values(?,?,?,?);");


@ 해결방법


세미콜론을 삭제한다.

PreparedStatement pstmt = conn.prepareStatement("insert into customer values(?,?,?,?)");



참고사이트

http://powerofwriting.tistory.com/entry/Oracle-javasqlSQLSyntaxErrorException-ORA00911-%EB%AC%B8%EC%9E%90%EA%B0%80-%EB%B6%80%EC%A0%81%ED%95%A9%ED%95%A9%EB%8B%88%EB%8B%A4

반응형
Comments