| От | Tom Lane |
|---|---|
| Тема | Re: delete with cascade |
| Дата | |
| Msg-id | 1698.989015049@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | delete with cascade (Martín Marqués <martin@bugs.unl.edu.ar>) |
| Список | pgsql-sql |
=?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= <martin@bugs.unl.edu.ar> writes:
> I was reading the manuals on DELETE and I saw this:
> By default DELETE will delete tuples in the table specified and all its
> sub-tables. If you wish to only update the specific table mentioned, you
> should use the ONLY clause.
> I just don't understand what sub-tables means.
It means inheritance children, ie, tables you created with INHERIT
from the specified table.
> Does it mean that it will
> delete rows on other tables which are referenced with a FOREIGN KEY to the
> row which will be deleted?
Foreign key deletion is an unrelated feature.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера