Home Alternative to rules for User-Defined Data Types
 Since the rules are deprecated, what is the correct syntax to use constraints with User-defined types (I don't mean user-defined table types)? CREATE TYPE MyType FROM NCHAR(10) NOT NULL CONSTRAINT CHECK(MyType IN ('haha', 'hoho'))  This is not working...