CASCADE PB

Поиск
Список
Период
Сортировка
От fred
Тема CASCADE PB
Дата
Msg-id 20021127161904.E03F64764D2@postgresql.org
обсуждение исходный текст
Ответы Re: CASCADE PB
Список pgsql-admin
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.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: pg_restore error: function plpgsql_call_handleralready
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: CASCADE PB