workbench 数据表字段说明

PK:primary key 主键

NN:not null 非空

UQ:unique 唯一索引

BIN:binary 二进制数据(比text更大)

UN:unsigned 无符号(非负数)

ZF:zero fill 填充0 例如字段内容是1 int(4), 则内容显示为0001 

AI:auto increment 自增

G: Generated columns规则生成列(官方文档如下)

猜你喜欢

转载自www.cnblogs.com/venom95/p/9908671.html