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

ssh开发中插入数据时遇到 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

2011-05-16 20:58 1201 查看
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 'use'

这个问题困扰了一些时间,虽然知道有语法错误,可是没有想到问题所在,不过最终发现是由于mysql数据库中use是关键字,所以在建表时不要把它作为字段名称,否则会引起上述问题!!!

感谢http://topic.csdn.net/u/20100609/20/a50da821-61e9-472d-9171-ab8a9e189bea.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐