SQL Server equivalent to MySQL enum data type?

前端 未结 5 852
傲寒
傲寒 2020-11-28 04:29

Does SQL Server 2008 have a a data-type like MySQL\'s enum?

5条回答
  •  眼角桃花
    2020-11-28 05:16

    Found this interesting approach when I wanted to implement enums in SQL Server.

    The approach mentioned below in the link is quite compelling, considering all your database enum needs could be satisfied with 2 central tables.

    http://blog.sqlauthority.com/2010/03/22/sql-server-enumerations-in-relational-database-best-practice/

提交回复
热议问题