报错信息如下:
Error updating 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 ‘‘name’,‘state’,‘country’) values(‘mmmm’,‘aaa’,‘qqq’)’ at line 1\r\n###
找问题:
1、检查自己的SQL语句是否正确
2、字段名是否用了关键字
3、加 `符号、修改有冲突的字段名
我的错误是,把`写成’了🤣
错误代码段如下
<insert id = "insert">
insert into city('name','state','country'