Re: How to deactivate FK's to reorder fields in table?

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: How to deactivate FK's to reorder fields in table?
Дата
Msg-id 20091013192529.GA12053@tux
обсуждение исходный текст
Ответ на How to deactivate FK's to reorder fields in table?  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
Andre Lopes <lopes80andre@gmail.com> wrote:

> Hi,
>
> I need to reorder fields in one table.

Not possible. Use a select-list instead of 'select *' to achieve this.

> 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 the fields, use a 'SELECT field 1, field2, ..., fieldN
FROM <table> instead. It has hothing to do with the FK's field.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

В списке pgsql-general по дате отправления:

Предыдущее
От: Andre Lopes
Дата:
Сообщение: How to deactivate FK's to reorder fields in table?
Следующее
От: gmb
Дата:
Сообщение: Re: Possible encoding issue (win7)