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
这个问题困扰了一些时间,虽然知道有语法错误,可是没有想到问题所在,不过最终发现是由于mysql数据库中use是关键字,所以在建表时不要把它作为字段名称,否则会引起上述问题!!!
感谢http://topic.csdn.net/u/20100609/20/a50da821-61e9-472d-9171-ab8a9e189bea.html
相关文章推荐
- 插入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
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- 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
- MySql 执行语句错误 Err] 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
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- SQL Error: 1064, SQLState: 42000 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version