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

不知道哪里错了

Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION current.date does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)

at com.mysql.jdbc.Util.getInstance(Util.java:387)

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

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

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

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

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

at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2549)

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

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

at com.rose.dao.GoddessDao.addGoddess(GoddessDao.java:35)

at com.rose.action.GoddessAction.main(GoddessAction.java:34)


正在回答

2 回答

CURRENT_DATE()   最好把错误的代码贴上来  不然没法帮你

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

功能current.date不存在。可以参考'Function Name Parsing and Resolution“部分的参考手册

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

举报

0/150
提交
取消

不知道哪里错了

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