首页 > 学院 > 开发设计 > 正文

sql报错

2019-11-06 08:10:34
字体:
来源:转载
供稿:网友
Caused by: com.MySQL.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'while id=1' at line 3好久不打sql命令,刚刚学mybatis,就发现了这个错误,最后发现sql语句的条件update tb_user        set name=#{name},sex=#{sex},age=#{age}        while id=#{id}错了,是where,基础要好好巩固啊。
上一篇:Struts2学习整理总结

下一篇:大笨钟

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表