mysql-work_不懂

Table of Contents

password

sudo pacman -S gnomo-keyring

建表

Workbench 建表时 PK NN UQ BIN UN ZF AI G 的含义
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 基于其他列的公式生成值的列

来自

原文地址:https://www.cnblogs.com/instinct-em/p/12299047.html