>CHECK: 用于控制字段的值范圍。
DEFAULT: 用于設置新記錄的默認值。
3. not null : 用于控制字段的內容一定不能為空(NULL)。
用法 :Create table MyTable
(
id varchar(32) not null,
name varchar (32)
)
4. Primary Key :也是用于控件字段內容不能重復,但它在一個表只允許出現一個。
在Sql Server、Orcale、MS Access 支持的添加Primary Key語法:
Create table myTB1
(
id nvarchar(32) not null primary key,
name nvarchar(32)
)