powerdesigner15.1生成的mysql语句出错

gwgyk 2013-10-18 01:02:42
我使用powerdesigner15.1生成mysql语句,但是在mysql上跑的时候出错了,
原sql语句中的一部分:



错误信息如下:


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
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
Query OK, 0 rows affected

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 '? int not null,
瀹㈡埛ID int not null,
' at line 6
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 '? int not null,
鍛樺伐ID int not null,
' at line 6
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 '? int not null,
鍛樺伐ID int not null,
' at line 6
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 '? char(50),
primary key (鏀鍚嶇О)
)' at line 7


在原sql语句中在那个表名上自动加了双引号,这个该怎么去掉啊?(网上找到了oracle去掉双引号的方法,但是没有mysql的,因为是才开始使用powerdesigner,里边的东西也不敢乱改)

我用的powerdesigner是15.1,mysql是5.1.31,而powerdesigner15.1只有mysql5.0这个选项,没有mysql的更高版本了,是不是与数据库版本不匹配的问题?还是因为我的mysql是绿色版的?

最后,这个乱码是数据库的编码问题引起的吗?数据库就是utf-8的啊?
...全文
225 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Rotel-刘志东 2013-10-22
  • 打赏
  • 举报
回复
表名和字段名不能用中文命名。
Rotel-刘志东 2013-10-22
  • 打赏
  • 举报
回复
还是字段名是中文造成的。
iihero_ 2013-10-22
  • 打赏
  • 举报
回复
表名,字段名不要用中文。

56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧