tags:

views:

142

answers:

2

Please help me to create domain in MySQL. I have tried to run the followoing statement in MySQL but got syntax error: create domain age as int(2);

+2  A: 

MySQL doesn't support user-defined domains, so its not possible to run a CREATE DOMAIN statement.

Phil Ross
and what about MS SQL Server?
Wilson
MS SQL does support user-defined types. They can be created with CREATE TYPE.
Phil Ross
+1  A: 

Your syntax is not ok. I don't think that CREATE DOMAIN is supported by MySQL.

mRt