Groups | Blog | Home
all groups > sql server programming > november 2003 >

sql server programming : composite key in Query Analyzer



Queenof1
11/14/2003 11:26:13 PM
Dodger
11/15/2003 3:16:05 AM
I had the same question, thanks David

David Portas
11/15/2003 7:57:50 AM
CREATE TABLE Sometable (col1 INTEGER, col2 INTEGER, col3 INTEGER NOT NULL,
col4 INTEGER NOT NULL, CONSTRAINT PK_ConstraintName PRIMARY KEY (col1,col2),
CONSTRAINT UQ_ConstraintName UNIQUE (col3,col4))

--
David Portas
------------
Please reply only to the newsgroup
--

anonymous NO[at]SPAM discussions.microsoft.com
11/19/2003 4:06:35 PM
Thanx for your help!
[quoted text, click to view]
AddThis Social Bookmark Button