CREATE TABLE [MyTable]
(
ID INT NOT NULL,
SomeUniqueColumn varchar(20) NOT NULL,
CONSTRAINT PK_MyTable PRIMARY KEY(ID),
CONSTRAINT U_MyTable UNIQUE(SomeUniqueColumn)
)
CREATE TABLE [MyTable]
(
ID INT NOT NULL,
SomeUniqueColumn varchar(20) NOT NULL,
CONSTRAINT PK_MyTable PRIMARY KEY(ID),
CONSTRAINT U_MyTable UNIQUE(SomeUniqueColumn)
)
发布评论
评论(2)
这应该做到这一点。
This should do that.