MySQL 使用 Workbench 建表时 PK NN UQ BIN UN ZF AI G 的含义

版权声明:不为无益之事,何以遣有涯之生。 https://blog.csdn.net/lj402159806/article/details/78812667

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
基于其他列的公式生成值的列

猜你喜欢

转载自blog.csdn.net/lj402159806/article/details/78812667