mysql workbench中PK,NN,UQ,BIN,UN,ZF,AI欄位類型標識說明,workbenchuq

來源:互聯網
上載者:User

mysql workbench中PK,NN,UQ,BIN,UN,ZF,AI欄位類型標識說明,workbenchuq

使用mysql 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 自增



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.