为了账号安全,请及时绑定邮箱和手机立即绑定

SQL语句报错,检查不出来

Exception in thread "main" com.mysql.jdbc.exceptions.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 'create_date,update_user='ADMAIN',update_date=current_date(),isdel=1  where id=3' at line 1

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)

at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)

at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)

at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)

at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)

at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:882)

at jdbc_dao.GoddessDao.updateGoddess(GoddessDao.java:55)

at jdbc_action.GoddessAction.main(GoddessAction.java:23)

http://img1.sycdn.imooc.com//594de4a0000171c905880505.jpg

http://img1.sycdn.imooc.com//594de4a100013fc405000402.jpg

http://img1.sycdn.imooc.com//594de4a10001c45f07170543.jpg

http://img1.sycdn.imooc.com//594de4a20001152706640546.jpg


正在回答

1 回答

已解决,是语句错误

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
JDBC之 “ 对岸的女孩看过来”
  • 参与学习       99326    人
  • 解答问题       856    个

一起领略JDBC的奥秘,为进一步学习集成框架打下良好的基础

进入课程

SQL语句报错,检查不出来

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信