mysqlerror :"You have an error in your SQL syntax; check the manual that corresponds to your MySQL

(1064, "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 ')' at line 1")

错误是不可避免的 ,有时候自己的粗心会付出代价    比如说。。。这个错误是mysql语句问题  极大可能是你写的mysql语句有问题    今天的奇葩错误是   在这条sql语句 insert into table(one,two,three)  values('1','2','3',);   没错 这是个错误的sql语句  values的值需要对应table的字段值  so,你即使多一个 逗号 也是不可以的! 唉 有些小毛病别人可以迁就 ,但是计算机不会啊

猜你喜欢

转载自blog.csdn.net/weixin_41978322/article/details/86538978
今日推荐