选择database->genarate database菜单,在打开的窗口中选择options页签,找到key选项,系统默认为outside,如图


powerdesigner正向生成mysql
 

生成的建表脚本是

create table Test
(
   action_id           int(32) not null auto_increment,
   action_name         varchar(64) not null
);

alter table Test
   add primary key (action_id);

 

该脚本在mysql5.0不能运行,将outside改为inside,生成的脚本为

create table Test
(
   action_id           int not null auto_increment,
   action_name         varchar(64) not null,
   primary key (action_id)
);
该脚本可以顺利执行

相关文章:

  • 2021-07-12
  • 2022-12-23
  • 2021-08-06
  • 2021-06-25
  • 2022-12-23
  • 2021-07-07
  • 2021-10-19
猜你喜欢
  • 2021-12-10
  • 2021-09-29
  • 2021-12-24
  • 2021-09-07
  • 2021-07-17
  • 2021-10-10
相关资源
相似解决方案