0
点赞
收藏
分享

微信扫一扫

powerdesigner导出建表脚本


生成数据库脚本

Database -> Generate Database…

powerdesigner导出建表脚本_ide

点击确定

powerdesigner导出建表脚本_ide_02

只生成数据库脚本

默认全选中,把Index勾去掉

powerdesigner导出建表脚本_ide_03

主键索引

powerdesigner导出建表脚本_ide_04

inside

和建表脚本一起的,这种primary key (id)

create table t_user
(
id bigint not null comment ‘ID’,
tenant_id bigint comment ‘租户ID’,

primary key (id)
);

outside

outside, 独立脚本,和建表脚本分开的 alter table t_user add primary key (id);

只生成索引

这里不包括主键索引,主键索引在建表脚本那边

powerdesigner导出建表脚本_ide_05

去掉drop index脚本

powerdesigner导出建表脚本_主键_06


举报

相关推荐

0 条评论