PowerDesigner 15设置mysql主键自动增长及基数
1、双击标示图,打开table properties->columns, 如图点击图标Customize Columns and Filter(或直接用快捷键Ctrl+U)
2、选中identity
3、 设置基数,点击physical options ,选中auto_increment添加到右边,并在下方输入10000设置为基数,如图
4、返回columns,选中identity,如图
设置成功
生成sql语句如下:会多出一行
create table user
(
id bigint not null auto_increment,
username varchar(50),
primary key (id)
)
auto_increment = 10000;
本文详细介绍了如何在PowerDesigner15中设置MySQL主键自动增长并自定义基数的方法,包括操作步骤和生成的SQL语句。
2万+

被折叠的 条评论
为什么被折叠?



