Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 primary key

Author  Topic 

BendJoe
Posting Yak Master

128 Posts

Posted - 2008-03-19 : 12:46:01
How can I make the combination of two columns as the primary key?
Thanks

LarsG
Constraint Violating Yak Guru

284 Posts

Posted - 2008-03-19 : 13:23:54
[code]
create table xxx( firstColumn char(12), secondColumn integer, thirdColumn datetime,
primary key(firstColumn,secondColumn))
[/code]
Go to Top of Page
   

- Advertisement -