SQL语句报错,检查不出来

来源:2-4 JDBC实战---搭建模型层 Ⅱ

黑夜1

2017-06-24 12:04

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://img.mukewang.com/594de4a0000171c905880505.jpg

http://img.mukewang.com/594de4a100013fc405000402.jpg

http://img.mukewang.com/594de4a10001c45f07170543.jpg

http://img.mukewang.com/594de4a20001152706640546.jpg


写回答 关注

2回答

JDBC之 “ 对岸的女孩看过来”

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

99324 学习 · 856 问题

查看课程

相似问题