Re: create table with table constraints - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: create table with table constraints
Date
Msg-id 20051214063327.GA56703@winnie.fuhr.org
Whole thread Raw
In response to create table with table constraints  (Jim Beckstrom <jrbeckstrom@sbcglobal.net>)
Responses Re: create table with table constraints  (Jim Beckstrom <jrbeckstrom@sbcglobal.net>)
List pgsql-novice
On Tue, Dec 13, 2005 at 07:46:10PM -0800, Jim Beckstrom wrote:
> A sample, please, of the syntax for creating a table with unique
> table constraint.  I thought I followed the online manual syntax,
> but only got a parser error pointing to the opening paren following
> "CREATE TABLE".

What part of the manual were you looking at?  There are several
examples in the "Constraints" section of the "Data Definition"
chapter:

http://www.postgresql.org/docs/8.1/interactive/ddl-constraints.html

If that doesn't help then please show the exact command you ran and
the exact error message; that way we can point out what's wrong and
why it's wrong.  It might also be useful to know what version of
PostgreSQL you're running.

--
Michael Fuhr

pgsql-novice by date:

Previous
From: Jim Beckstrom
Date:
Subject: create table with table constraints
Next
From: "Roland Giesler"
Date:
Subject: Offline database usage