SQL Server equivalent to MySQL enum data type?

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

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

5条回答
  •  鱼传尺愫
    2020-11-28 04:55

    IMHO Lookup tables is the way to go, with referential integrity. But only if you avoid "Evil Magic Numbers" by following an example such as this one: Generate enum from a database lookup table using T4

    Have Fun!

提交回复
热议问题