您的位置:首页 > 数据库 > MySQL

PowerDesigner 15设置mysql主键自动增长及基数

2016-07-13 16:20 597 查看
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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql powerdesigner 主键