• 错误: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#来完成二叉树的搜索、遍历、及查找
    给大家推荐个学英语的网站
    我一直在心酸——有感于512大地震
    LINQ基础(一)
    再谈奶牛问题
    【转】程序员的十层楼,你属于哪一层?
    c#实现根据有规律的文件内容解析成实体类
    c#多线程操作界面控件的简单实现
    不要迷恋哥,哥不只是传说(再【转】世界上最牛的程序员)
    c#简单实现提取网页内容
  • 原文地址:https://www.cnblogs.com/huike/p/7504175.html
Copyright © 2020-2023  润新知