에러
JPA, MySQL 사용 결과 에러 발생
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

해결
1. MySQL 문법이 잘못 쓰인게 있는지 확인
2. 문법 잘못 쓰인게 없을 시, MySQL 예약어 사용 확인(Order 등등)
3. MySQL 예약어를 사용중일 경우 예약어 사이에 \" 추가 ex. \"(예약어)\"
변경 전

변경 후

반응형