|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Hello,
I understand that there is no ENUM data type in MS SQL 2000. Is there a way of converting a MySQL table that has ENUM's to a similar table in MS SQL? For example, if I have a column 'month_number' that can hold values between 1 and 12 I would use CREATE TABLE example_table ( other column info..., month_number ENUM ('1','2', ... etc to '12'), other column info..., ); for a MySQL table creation statement. How could I do something similar in MS SQL 2000? I have other ENUM columns with text as well. |
|
#2
|
|||
|
|||
|
Code:
CREATE TABLE example_table ( other column info..., month_number smallint check (mont_number in (1,2, ... etc to 12)), other column info..., ) There you are, all standard SQL. |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > enum-equivalent data type for MS SQL 2000 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|