zoukankan      html  css  js  c++  java
  • 错误:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException

    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'hdjyproj.t_userinfo' doesn't exist
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
     at com.mysql.jdbc.Util.getInstance(Util.java:408)
     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:943)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3970)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3906)
     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2677)
     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2549)
     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
     at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
     at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
     at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5098)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
     at com.alibaba.druid.pool.DruidPooledPreparedStatement.executeUpdate(DruidPooledPreparedStatement.java:253)
     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:133)
     ... 67 more

    解决:可能是由于数据库策略有问题,比如ID自动增长,但是设置的是String类型的.

  • 相关阅读:
    c# partial 关键字的使用
    动软代码生成器基础使用
    T-SQL :编程理论 (一)
    T-SQL :SQL Server系统数据库(二)
    T-SQL :SQL Server 定义数据完整性 6大约束(三)
    T-SQL:SQL语句处理顺序的坑(四)
    c#实战开发:以太坊私链搭建(一)
    T-SQL :TOP和OFFSET-FETCH筛选 (五)
    T-SQL:谓词和运算符(六)
    T-SQL:是NULL不是NULL(七)
  • 原文地址:https://www.cnblogs.com/huike/p/7504175.html
Copyright © 2011-2022 走看看