错误:
mybatis ySQL server version for the right syntax to use near a
其实就是写了挺正确的插入语句但是报错
原因
我的表名是key,和mysql的保留字重复了,用反引号括起来
解决:用键盘左上角的顿号写表名字
@Insert("insert into `key` values (#{name},#{key})")
mybatis ySQL server version for the right syntax to use near a
其实就是写了挺正确的插入语句但是报错
我的表名是key,和mysql的保留字重复了,用反引号括起来
@Insert("insert into `key` values (#{name},#{key})")