Contents

About SQL Identifier Features

   Aug 28, 2024     1 min read

This article examines the identifier characteristics of SQL.

Hello!

Today, we will learn about the characteristics of the identifiers used in the database.

Identifiers are important elements used to uniquely identify each row in the database and must have the following characteristics.

Unique (Unique)

Overview

Unique means that each identifier value is unique.

This means that the same value must not appear more than once.

Example

Each studentā€™s student number or each productā€™s unique product code must be unique.

Minimum

Overview

Minimal means that the identifier should be as small and concise as possible.

In other words, you should use identifiers to identify your data only as much as you need.

Example

It is recommended that you select your student number as an identifier using only the minimum amount of information required to uniquely identify the student.

There is no need to use the studentā€™s name or address additionally other than the student number.

Immutability

Overview

The invariance means that the identifier value should not change.

This means that the identifier value once specified should remain unchanged.

Example

The studentā€™s student number or product code of the product should not change once it has been created.

at the end of the day

Identifiers are important elements used to uniquely identify each row in the database.

These identifiers must have characteristics such as uniqueness, minimum, and invariance to ensure the accuracy and consistency of the database.

It is important to select and manage identifiers in consideration of these features when designing a database.

I hope this post helped me understand the features of the identifier.

In the next post, we will take a closer look at the types of identifiers and how to use them.

Letā€™s study together!