Re: How to create primary key - Mailing list pgsql-general

From Albe Laurenz
Subject Re: How to create primary key
Date
Msg-id D960CB61B694CF459DCFB4B0128514C27F7BA1@exadv11.host.magwien.gv.at
Whole thread Raw
In response to How to create primary key  (Reg Me Please <regmeplease@gmail.com>)
List pgsql-general
Reg Me Please wrote:
> What'd be the syntax to create a primary key on an already 
> build table?

As described in the documentation:

ALTER TABLE <name> ADD [CONSTRAINT <constraint name>]
PRIMARY KEY (<colname> [, ...])
[WITH (FILLFACTOR = <number>)] [USING INDEX TABLESPACE <tbsp name>]

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: How to create primary key
Next
From: Ron Johnson
Date:
Subject: Re: How to create primary key