| От | Raymond O'Donnell |
|---|---|
| Тема | Re: How to deactivate FK's to reorder fields in table? |
| Дата | |
| Msg-id | 4AD4ECB6.8030808@iol.ie обсуждение исходный текст |
| Ответ на | How to deactivate FK's to reorder fields in table? (Andre Lopes <lopes80andre@gmail.com>) |
| Список | pgsql-general |
On 13/10/2009 20:17, Andre Lopes wrote: > I need to reorder fields in one table. But the database don't let me do this > action because the FK's pointing to the table. How can I deactivate the > FK's? You can't reorder columns in PostgreSQL, so I'm guessing that you're trying to drop and re-creating the table, and begin prevented from doing so by FK dependencies from other tables - would that be correct? If so, you can just drop the FKs and recreate them afterwards. Ray. ------------------------------------------------------------------ Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland rod@iol.ie Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals ------------------------------------------------------------------
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера