异常信息如下:
解决:You have an error in your SQL syntax check the manual that corresponds to your MySQL
说是语法错误,检查了下sql语句是对的。

仔细看了下,出错原因居然是属性定义成了mysql关键字。如下:desc就是关键字。
解决:You have an error in your SQL syntax check the manual that corresponds to your MySQL
解决办法:避免使用关键字就好了。

查看属性是否有关键字:点我查看Mysql关键字

相关文章: