Re: deleting referenced data

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: deleting referenced data
Дата
Msg-id 200308261834.04291.dev@archonet.com
обсуждение исходный текст
Ответ на deleting referenced data  (Andreas Fromm <Andreas.Fromm@physik.uni-erlangen.de>)
Ответы Re: deleting referenced data  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
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"
Дата:
Сообщение: Re: Linux ready for high-volume databases?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Linux ready for high-volume databases?