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

     1 Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.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 '(3),    primary key (ID_)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin' at line 1
     2     at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
     3     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     4     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     5     at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
     6     at com.mysql.jdbc.Util.getInstance(Util.java:381)
     7     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
     8     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
     9     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
    10     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
    11     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
    12     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
    13     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543)
    14     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737)
    15     at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:998)
    16     at com.to.init.InitSQL.main(InitSQL.java:55)

    您的资助是我最大的动力!
    金额随意,欢迎来赏!

    如果,您认为阅读这篇博客让您有些收获,不妨点击一下右下角的推荐按钮。
    如果,您希望更容易地发现我的新博客,不妨点击一下绿色通道的关注我

    如果,想给予我更多的鼓励,求打

    欢迎大家关注我的个人博客 Lycos | 小站 !由于最近没时间处理,原域名http://www.liuyuchuan.com暂时停止使用

  • 相关阅读:
    模块
    time/datetime/random/string/os/sys/shutil/zipfile/tarfile
    模块
    模块
    模块
    2.1
    1.4
    生成器 迭代器
    闭包 装饰器
    函数
  • 原文地址:https://www.cnblogs.com/yuchuan/p/3957398.html
Copyright © 2011-2022 走看看