您的位置:首页 > 数据库 > MySQL

check the manual that corresponds to your MySQL server version for the right syntax to use near 'lim

2018-01-31 00:00 726 查看
摘要: check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 1, 6'

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 'limit 1, 6' at line 1
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
com.mysql.jdbc.Util.getInstance(Util.java:381)

sql写的有问题,在sql结尾多写了一个“;”,建议遇到类似问题,先仔细检查一下sql 的正确性;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  bug mysql
相关文章推荐