原帖由 [bold][underline]purana[/underline][/bold] 于 2007-12-15 09:56 发表 [url=http://bbs.]
" border="0" />[/url]
check约束就是查询分析器里写的.
谢谢,已经查到,大概上理解了。
例子如下
CREATE TABLE ZIPCODES
(ZIPCODE NUMERIC,
CITY CHAR,
STATE CHAR,
CONSTRAINT StateForm CHECK STATE LIKE '[A-Z][A-Z]',
ZIPCODE LIKE '[0-9][0-9][0-9][0-9][0-9]
ZIPCODE ((>=01001 AND <= 02791) AND (>=05501 and <=05544)) AND STATE = 'MA'