Mysql Workbench中PK,NN,UQ,BIN,UN,ZF,AI字段类型标识说明

PK - Belongs to primary key
作为主键

NN - Not Null
非空

UQ - Unique index
不能重复

BIN - Is binary column
存放二进制数据的列

UN - Unsigned data type
无符号数据类型(例如-500 to 500替换成0 - 1000,需要整数形数据)

ZF - Fill up values for that column with 0’s if it is numeric
填充0位(例如指定3位小数,整数18就会变成18.000)

AI - Auto Incremental
自增长

G - Generated column
基于其他列的公式生成值的列

posted @ 2018-06-26 10:05  两粒  阅读(214)  评论(0编辑  收藏  举报