Re: primary keys
От
terry@greatgulfhomes.com
Тема
Re: primary keys
Дата
Msg-id
010c01c28665$2ef19b80$2766f30a@development.greatgulfhomes.com
Ответ на
primary keys (Huub)
Список
Дерево обсуждения
primary keys Huub <v.niekerk@freeler.nl>
Re: primary keys terry@greatgulfhomes.com
Re: primary keys Huub <v.niekerk@freeler.nl>
Re: primary keys "Sangeetha Rao" <srao@carolina.rr.com>
Re: primary keys Bruno Wolff III <bruno@wolff.to>
Re: primary keys "Rachel.Vaudron" <rachel@lazaret.unice.fr>
Re: primary keys Achilleus Mantzios <achill@matrix.gatewaynet.com>
A table can only have ONE primary key. It can have additional indexes with a UNIQUE restriction, thereby forcing the second field to be as good as a primary key. That is probably what you are looking for, however, you can also in PG Admin II select multiple fields as being the member of the primary key. Terry Fielder Network Engineer Great Gulf Homes / Ashton Woods Homes terry@greatgulfhomes.com > -----Original Message----- > From: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Huub > Sent: Wednesday, November 06, 2002 9:19 AM > To: pgsql-sql@postgresql.org > Subject: [SQL] primary keys > > > Hi, > > I want to create a table which has 2 columns, and both > columns have to > be primary key (or: together they are the primary key). How can I do > this using SQL? Using pgAdminII for Postgres7.2.2 on RH8. > > Thanks > > Huub > > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >
В списке pgsql-sql по дате отправления