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;
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中的integer 数据类型
- MySQL存储过程
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- MySQL创建用户及权限控制
- MySQL管理数据表
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- PowerDesigner 面向对象模型(OOM)说明
- MySQL 备份和恢复策略
- mac下安装mysql(转载)
- mysql 修改编码 Linux/Mac/Unix/通用(杜绝修改后无法启动的情况!)
- MySQL数据的导出、导入(mysql内部命令:mysqldump、mysql)
- mysql数据行转列
- Linux下修改MySQL编码的方法
- MySQL Server 日志
- MySQL 安全事宜