pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sangeetha Rao <srao@carolina.rr.com>
To: pgsql-sql@postgresql.org
Subject: Re: primary keys
Date: Thu, 7 Nov 2002 10:12:59 -0500
Message-ID: <HDELJLNGPHNPMMKLDPOBOEMECBAA.srao@carolina.rr.com> (raw)
In-Reply-To: <010c01c28665$2ef19b80$2766f30a@development.greatgulfhomes.com>

How do you select these sub Primary Keys?
I tried using Shift-Select, Ctrl_Selec, but doesn't work.
Thanks
Sangeetha

-----Original Message-----
From: pgsql-sql-owner@postgresql.org
[mailto:pgsql-sql-owner@postgresql.org]On Behalf Of
terry@greatgulfhomes.com
Sent: Thursday, November 07, 2002 8:54 AM
To: 'Huub'; pgsql-sql@postgresql.org
Subject: Re: [SQL] primary keys


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
>


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly




view thread (10+ messages)

Message-ID: <HDELJLNGPHNPMMKLDPOBOEMECBAA.srao@carolina.rr.com>
Permalink:  ../HDELJLNGPHNPMMKLDPOBOEMECBAA.srao@carolina.rr.com/
Also on:    postgresql.org/message-id/HDELJLNGPHNPMMKLDPOBOEMECBAA.srao@carolina.rr.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: srao@carolina.rr.com
  Subject: Re: primary keys
  In-Reply-To: <HDELJLNGPHNPMMKLDPOBOEMECBAA.srao@carolina.rr.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox