Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)
Whether the SQL Server 2008 has a data-type like the MySQL's enum?

1 Answer

0 votes
by (12.7k points)
edited by

It doesn't have one. However, there's a vague equivalent:

mycol VARCHAR(10) NOT NULL CHECK (mycol IN('Useful', 'Useless', 'Unknown'))

Are you interested to know SQL in detail? Come and join the Microsoft SQL Server Database certifications and training to gain more knowledge.

You can check out the below SQL Tutorial video for better understanding.

Related questions

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...