Account
Categories

SET Data Type


The SET data type refers to storing multiple predefined values, and each column can store a combination of those values.

When you create a table in MySQL, you define the SET data type with specific options so that only valid combinations of those predefined values can be inserted into that column.

Syntax:

column_name SET('value1', 'value2', ...)