Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Foreign Unique Constraint



> 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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group