org.springframework.jdbc.BadSqlGrammarException
-
偶然间发现了这个问题,感觉挺简单吧,但是也不简单,感觉不简单吧,其实没有那么
-
接下来就描述这个问题,今天在做查询表述一条数据的时候出现这个问题
-
错误如下:
org.springframework.jdbc.BadSqlGrammarException:
Error querying database. Cause: 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 ‘desc,status FROM n_note WHERE id=1’ at line 1
The error may exist in com/an/notepad/mapper/NoteMapper.ja