Re: Foreign Unique Constraint - Mailing list pgsql-sql

From Jon Horsman
Subject Re: Foreign Unique Constraint
Date
Msg-id 4f4c2a010703270727l28ad24c6if8881ad6253f9253@mail.gmail.com
Whole thread Raw
In response to Re: Foreign Unique Constraint  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
> > create table table1 (
> > id SERIAL PRIMARY KEY
> > extension UNIQUE,
>
> I can't find anything about this syntax in the docs...

Oops, i'm missing a comma on that first line, should have been:

create table table1 (
id SERIAL PRIMARY KEY,
extension UNIQUE,
)

> I think, you should write a TRIGGER for this.

Ok, i'll look into how that works.  Anyone have any other input?

Thanks,

Jon


pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: select vs. select count
Next
From: Tom Lane
Date:
Subject: Re: array_to_string