MySQL Workbench建表时 PK NN UQ B UN ZF AI G的含义

PK
Belongs to primary key
作为主键

NN
Not Null
非空

UQ
Unique index
不能重复

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

UN
Unsigned data type
无符号数据类型(需要整数形数据)

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
Generated Column是MySQL 5.7引入的新特性,数据库中这一列由其他列计算而得

 

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-02-08
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2021-06-02
  • 2022-12-23
相关资源
相似解决方案