| From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: CHECK() Constraint on Column Using Lookup Table |
| Date: | 2007-05-01 18:03:02 |
| Message-ID: | 20070501180302.GA16232@a-kretschmer.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
am Tue, dem 01.05.2007, um 10:41:44 -0700 mailte Rich Shepard folgendes:
> I've seen the syntax for using a lookup table in a CHECK() constraint, but
> I cannot find a reference to it. It's not in Section 5.3.1 of the 8.2 docs.
>
> Specifically, I want to reference a table of ISO 2-letter codes for US
> states and Canadian provinces/territories in a table with name and address
> columns.
>
> Please point me to a reference.
How about with a simple foreign key? (Section 5.3.5 of the 8.2 docs)
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rich Shepard | 2007-05-01 18:09:40 | Re: CHECK() Constraint on Column Using Lookup Table |
| Previous Message | Richard Broersma Jr | 2007-05-01 17:55:34 | Re: CHECK() Constraint on Column Using Lookup Table |