| От | Stephan Szabo |
|---|---|
| Тема | Re: Modifying an existing constraint? |
| Дата | |
| Msg-id | 20040604161353.O34049@megazone.bigpanda.com обсуждение исходный текст |
| Ответ на | Modifying an existing constraint? (Lynna Landstreet <lynna@gallery44.org>) |
| Ответы |
Re: ON DELETE CASCADE (was: Modifying an existing
|
| Список | pgsql-novice |
On Fri, 4 Jun 2004, Lynna Landstreet wrote: > Does anyone know if it's possible to modify an existing table constraint - > for example, to add "ON DELETE CASCADE" to an existing foreign key > constraint? Or would I have to recreate the table to add that? You can drop the constraint and add it again with the additional clause using ALTER TABLE. One warning is that it will recheck the constraint in this case which may make the ALTER slow if there's alot of data.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера