# What is PK NN UQ B UN ZF AI G in MySQL?

The abbreviations are: PK, NN, UQ, BIN, UN, ZF, and AI. I assume that PK means Primary Key and NN means Non-Null, BIN means Binary data (which seems unnecessary), and either UQ or UN means Unique, but I have no idea about the others.

Bron: [What are the abbreviations of the options on each row in creating a ...](https://www.reddit.com/r/SQL/comments/3u5zhy/what_are_the_abbreviations_of_the_options_on_each/#:~:text=The%20abbreviations%20are%3A%20PK%2C%20NN,no%20idea%20about%20the%20others.)

Onderwerp: [Techniek & internet](https://1001vragen.nl/onderwerp/techniek-en-internet)
Toegevoegd: 2026-01-26
Webpagina: https://1001vragen.nl/vraag/what-is-pk-nn-uq-b-un-zf-ai-g-in-mysql

## What is PK NN UQ in MySQL?

PK: PRIMARY KEY NN: NOT NULL UQ: UNIQUE INDEX BIN: BINARY UN: UNSIGNED ZF: ZEROFILL AI: AUTO_INCREMENT G: Generated Column This option is available as of MySQL Server 5.7.

Bron: [MySQL Workbench Manual :: Search Results](https://dev.mysql.com/doc/search/?q=composite+index+statement&d=22&p=1#:~:text=PK%3A%20PRIMARY%20KEY%20NN%3A%20NOT,as%20of%20MySQL%20Server%205.7.)

## What is zf in MySQL?

ZF: ZEROFILL. AI: AUTO_INCREMENT. G: Generated Column. This option is available as of MySQL Server 5.7.

Bron: [MySQL Workbench Manual :: 8.1.10.2 Columns Tab](https://dev.mysql.com/doc/workbench/en/wb-table-editor-columns-tab.html#:~:text=ZF%3A%20ZEROFILL,as%20of%20MySQL%20Server%205.7.)

## What does uq mean in MySQL?

- UQ: unique (column is part of a unique key)

Bron: [unique](https://forums.mysql.com/read.php?152,358556,358577#:~:text=%2D%20UQ%3A%20unique%20(column%20is%20part%20of%20a%20unique%20key))

## What does PK mean in MySQL?

In database table design, "PK" stands for Primary Key. A Primary Key is a column (or a combination of columns) that uniquely identifies each row in a table. It ensures that no two rows have the same values in the primary key column(s), and it enforces entity integrity by preventing NULL values.

Bron: [Primary Key](https://www.tencentcloud.com/techpedia/129328#:~:text=In%20database%20table%20design%2C%20%22PK,integrity%20by%20preventing%20NULL%20values.)

## Verwante vragen

- [What is the maximum length of Group_concat in MySQL?](https://1001vragen.nl/vraag/what-is-the-maximum-length-of-group-concat-in-mysql.md)
- [What is the separator of Group_concat in MySQL?](https://1001vragen.nl/vraag/what-is-the-separator-of-group-concat-in-mysql.md)
- [How to use case in mysql SELECT query?](https://1001vragen.nl/vraag/how-to-use-case-in-mysql-select-query.md)
- [What does ORDER BY 1 do in MySQL?](https://1001vragen.nl/vraag/what-does-order-by-1-do-in-mysql.md)
- [How to set value for uniqueidentifier in SQL Server?](https://1001vragen.nl/vraag/how-to-set-value-for-uniqueidentifier-in-sql-server.md)
- [How to use cast statement in SQL?](https://1001vragen.nl/vraag/how-to-use-cast-statement-in-sql.md)
- [What is the CAST function in Oracle?](https://1001vragen.nl/vraag/what-is-the-cast-function-in-oracle.md)
- [Which clause is used to find a pattern in character data?](https://1001vragen.nl/vraag/which-clause-is-used-to-find-a-pattern-in-character-data.md)
- [What type of join is needed when you wish to return rows that do have matching values?](https://1001vragen.nl/vraag/what-type-of-join-is-needed-when-you-wish-to-return-rows-that-do-have-matching-values.md)
- [What does SELECT cast do?](https://1001vragen.nl/vraag/what-does-select-cast-do.md)
