Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Difference between ENUM and SET in SQL.?

user-image
Question added by Abdul Khader Shaik , Cyber Crime Lawyer , Grofers
Date Posted: 2018/01/03
Wojciech Kakol
by Wojciech Kakol , Senior Business Intelligence Developer , VOLVO IT

An ENUM value must be one of those listed in the column definition. The value cannot be the error value (0 or '').

A SET value must be the empty string or a value consisting only of the values listed in the column definition separated by commas.

More here:

https://dev.mysql.com/doc/refman/5.7/en/constraint-enum.html

More Questions Like This