Re: Newbie Constraint ?

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Jeanna Geier <jgeier(at)apt-cafm(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Newbie Constraint ?
Date: 2007-01-08 21:05:08
Message-ID: 45A2B204.7080805@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeanna Geier wrote:
> Hello List!
>
> OK, so I'm new to SQL and Postgres and am working on taking over this DB
> work, and ran across a command that I'm not sure of and am wondering if you
> can help me with... Probably a basic SQL question, but thought more than one
> person on here would be able to point me in the right direction!!
>
> In on of the tables in the DB, there is a constraint defined that I'm not
> familiar with:
>
> CONSTRAINT "Relationship182" FOREIGN KEY (elementid)
> REFERENCES element (elementid) MATCH SIMPLE
> ON UPDATE CASCADE ON DELETE CASCADE
>
>
> Not quite sure what the: CONSTRAINT "Relationship182" is exactly... can
> anyone help me with this one? Haven't seen this one yet...
>
That's the constraint name.
More detailed here:
http://www.postgresql.org/docs/8.1/interactive/sql-createtable.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Curran Schiefelbein 2007-01-08 21:19:28 Re: configure; make on cygwin doesn't produce DLLs
Previous Message Oisin Glynn 2007-01-08 21:04:31 Re: Database Failure on Windows XP Pro psql (PostgreSQL)