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

添加女神不成功怎么弄?

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 'valuse('ss',1,22,'2017-01-09','xiaoxia@imooc.com','110','ADMIN',current_date,'AD' 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 com.imooc.bao.GoddessDao.addGoddess(GoddessDao.java:35)

at action.Godessaction.main(Godessaction.java:27)


正在回答

2 回答

我也是这个错误

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

sql语句有问题,代码附上来看看呢

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

举报

0/150
提交
取消

添加女神不成功怎么弄?

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