You have an error in your SQL syntax; check the manual the manual that cor
今天敲代码时遇到一个这样的问题。我好好的检查了语句。结果发现就是我在mysql语句中因为数据库的表的字段和Sql关键字撞在一起重合了,所以导致它识别不了。在这段两边加入反引号可以解决这个问题。
如下:
insert into car(cno,ctype,use
,limit
,tno) values(#{cno},#{ctype},#{use},#{limit},#{tno})
其中的use和limit两边加上就好了这个符号在键盘的左端,英文的反引号!!!
You have an error in your SQL syntax; check the manual the manual that cor
最新推荐文章于 2024-07-27 14:50:38 发布