-
Mybatis Mapper 1064(42000) error공부/SpringBoot & Spring 2022. 6. 23. 08:50728x90
Error 1064(42000) : 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 '' at Line 4
" <- 따옴표를 안 써서 생기는 오류
위 에러는 주로 따옴표를 안써서 그렇다
예를들면 WHERE절 같은데에서
[ WHERE 칼럼1=값 ]
이런식으로 보낸다면 될때도있지만 위와같은 에러를 뿜어낸다.
[ WHERE 칼럼1='값' ]
요런식으로 따옴표로 묶어주도록 하자
또는 쿼리문 어딘가에서 따옴표로 묶여야할것이 하나가 빠져서 안묶여있을 수 있다
(코딩할때 중괄호를 빼먹거나 문자열에서 "를 빼먹을때처럼)
728x90'공부 > SpringBoot & Spring' 카테고리의 다른 글
Spring Boot Embeded Tomcat 내장 톰캣 application.properties 설정 (0) 2022.06.27 spring security + thymeleaf 기능? 적용? (0) 2022.06.24 Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 오류 (0) 2022.06.22 has an unsupported return type 오류 (0) 2022.06.17 An error happened during template parsing 에러 (0) 2022.06.17