You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
来源:互联网 发布:广联达软件开发待遇 编辑:程序博客网 时间:2024/03/28 23:24
启动myeclipse hibernate创建表的时候报You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version错误。
我在这里说明该问题的两种可能性:
1:实体里面的字段和hibernate映射中对应的列名对应不上。---仔细检查实体和映射文件中的每列
2:创建表的时候,数据库列名和关键字一样。----把create table语句 放在mysql的查询环境之下,找到和关键字重复的列名,在实体和映射文件中修改关键字列
修改以上两个问题。我这边碰到的问题解决。仅供参考,望对大家有帮助。
0 0
- 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
- 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
- ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
- 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
- JavaHost:使用虚拟DNS省掉开发环境配置hosts文件
- ios8 定位无效
- 怎样写一个尽可能优雅的equals方法
- 关于resize事件,不同浏览器的触发行为
- ******************** for循环 ********************
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- iOS开发UI-利用Quartz2D 实现基本绘图(画三角形、矩形、圆、圆弧)
- Android Canvas绘图详解
- springmvc实现REST中的GET、POST、PUT和DELETE
- 数据结构--排序之插入排序
- Android学习笔记——AVD
- lua语言的简单语句的总结
- 如何在Linux(Ubuntu 14.04 LTS)上安装搜狗拼音输入法
- ps aux指令詳解---进程