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)

 

转载于:https://www.cnblogs.com/yuchuan/p/3957398.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值