pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: fred <fred@skyturn.net>
To: pgsql-admin@postgresql.org
Subject: CASCADE PB
Date: Wed, 27 Nov 2002 17:18:08 +0100
Message-ID: <20021127161904.E03F64764D2@postgresql.org> (raw)

Hello,
I use postgreSQL 7.2.3 and I have trouble on deleting.
I would like to automaticly delete line in the 'coop' table when I dlete the 
line in the 'fact' table but it is not ok.
Where is my mistake ?
This is my database:

create table coop (
id_coop serial not null,
nom_coop varchar(50) not null,
primary key(id_coop)
);

create table fact (
id_fact serial not null,
id_coop integer references coop(id_coop) on delete cascade,
date_fact timestamp not null,
montant_fact decimal(6,3),
primary key(id_fact)
);

Thank's for your support.



view thread (4+ messages)  latest in thread

Message-ID: <20021127161904.E03F64764D2@postgresql.org>
Permalink:  ../20021127161904.E03F64764D2@postgresql.org/
Also on:    postgresql.org/message-id/20021127161904.E03F64764D2@postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: fred@skyturn.net
  Subject: Re: CASCADE PB
  In-Reply-To: <20021127161904.E03F64764D2@postgresql.org>
  References: <20021127161904.E03F64764D2@postgresql.org>

* 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