好记住的主健、约束定义方法

无聊的时候在看MonoDevelop里面MonoQuery的 screenphoto的时候,居然发现它申明约束和主健的时候居然如此定义:
create table test(
a
int identity (1,1),
b
int ,
c
int  not null,
unique (b),
primary key (a)
)

随后在SQL server2005中尝试了一下 通过!

这可是一个比较好记住的方法~

你可能感兴趣的:(好记住的主健、约束定义方法)