Re: Delete with join -- deleting related table entries?

From: "BigSmoke" <bigsmoke(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Delete with join -- deleting related table entries?
Date: 2006-02-08 17:25:59
Message-ID: 1139419559.188208.72500@g43g2000cwa.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm not sure if this is true for you as I can't see your complete table
definitions, but I'd usually do this by using

issue_id INTEGER REFERENCES issue ON DELETE CASCADE

in my column definition.

See [1] for more information.

[1]http://www.postgresql.org/docs/current/interactive/ddl-constraints.html#DDL-CONSTRAINTS-FK

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message BigSmoke 2006-02-08 17:27:47 Re: (NONE)
Previous Message Bryce Nesbitt 2006-02-08 17:14:11 Delete with join -- deleting related table entries?