pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Dyrby Jensen <dyrby@nork.auc.dk>
To: pgsql-sql@postgresql.org
Subject: Deletion Recursively
Date: Fri, 26 Oct 2001 21:55:53 +0200
Message-ID: <000a01c15e58$3868a680$6f6f6f6f@nork.auc.dk> (raw)

Greetings.

I am fairly new with the postgresql database.
And I have run into a problem, which I hope someone can help me with.

I am doing a school project, where I have chosen to learn to use this powerful tool, so I am using it to
handle a fictive company of banner advertising.

I need to register Advertisers, who got some Campaigns, and these campaigns have banners.
I have an Advertiser table, a campaign table and a banner table.

an advertiser hold references to the campaigns that he own, and the campaigns have references to the banners that they own.

My question is then: "How do I make the Database delete the campaigns and banners linked to the advertiser, when I delete him?"

A small example would really really help me alot.
(with small explanation too ofcause =) )

Yours, Michael.

view thread (3+ messages)  latest in thread

Message-ID: <000a01c15e58$3868a680$6f6f6f6f@nork.auc.dk>
Permalink:  ../000a01c15e58$3868a680$6f6f6f6f@nork.auc.dk/
Also on:    postgresql.org/message-id/000a01c15e58$3868a680$6f6f6f6f@nork.auc.dk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dyrby@nork.auc.dk
  Subject: Re: Deletion Recursively
  In-Reply-To: <000a01c15e58$3868a680$6f6f6f6f@nork.auc.dk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox