Re: deleting referenced data

Поиск
Список
Период
Сортировка
Искать
От
Richard Huxton
Тема
Re: deleting referenced data
Дата
Msg-id
200308261834.04291.dev@archonet.com
Ответ на
deleting referenced data (Andreas Fromm)
Список
Дерево обсуждения
Re: deleting referenced data Andreas Fromm <Andreas.Fromm@physik.uni-erlangen.de>
On Tuesday 26 August 2003 15:06, Andreas Fromm wrote:
>
> When I delete a record of the table realtions I also want to delete the
> record on the data-tables if there is no other record referencing them.
> How can I do this?

You want to add "ON DELETE CASCADE" to the REFERENCES... clause.
See the SQL reference for full syntax details.

-- 
  Richard Huxton
  Archonet Ltd
В списке pgsql-general по дате отправления
От: scott.marlowe
Дата:
От: Greg Stark
Дата:
FAQ