Re: multi-field primary key
- From: "David Portas" <REMOVE_BEFORE_REPLYING_dportas@xxxxxxx>
- Date: 28 Nov 2005 11:13:42 -0800
ALTER TABLE table1
ADD CONSTRAINT pk_table1 PRIMARY KEY (col1, col2, col3, col4, col5) ;
Tip: "column" and "row" are the terms usually preferred over "field"
and "record" when discussing SQL databases. Some people will argue that
there are quite different concepts attached to the different names and
that the distinction is a very important one. Others use the names
interchangeably without worrying to much about the formal definitions.
Still, you won't be called wrong if you stick with the terms "column"
and "row". :-)
Hope this helps.
--
David Portas
SQL Server MVP
--
.
- Follow-Ups:
- Re: multi-field primary key
- From: sql guy123
- Re: multi-field primary key
- References:
- multi-field primary key
- From: sql guy123
- multi-field primary key
- Prev by Date: Re: CASE problem
- Next by Date: Re: CASE problem
- Previous by thread: multi-field primary key
- Next by thread: Re: multi-field primary key
- Index(es):
Relevant Pages
|