Mysql workbench 字段类型(转载)

转载自:https://blog.csdn.net/j_h_xie/article/details/52924521

项目初始,在使用workbench建表时,字段中有PK,NN,UQ,BIN,UN,ZF,AI几个基本字段类型标识。


PK  => primary key   主键

NN  => not null     非空

UQ  => unique     唯一索引

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

UN  => unsigned    无符号(非负数)

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

AI  => auto increment  自增

posted @ 2019-05-04 16:04  winter-bamboo  阅读(1645)  评论(0编辑  收藏  举报