SQL Server equivalent to MySQL enum data type?

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

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

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 05:02

    The best solution I've found in this is to create a lookup table with the possible values as a primary key, and create a foreign key to the lookup table.

提交回复
热议问题