Re: column name order matters in insert into foo from bar

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: column name order matters in insert into foo from bar
Дата
Msg-id 2f4958ff0812040537y511ce4dasa849eb5875c8220b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: column name order matters in insert into foo from bar  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-general
On Thu, Dec 4, 2008 at 1:27 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:

> p.s. you can try use stored procedure for generating these statements
yeah, I ended up generating it using:
 select  array_to_string(ARRAY(select column_name::text  FROM
information_schema.columns where table_name='foo'), ',');

This was one time thing anyway, so than simple copy and paste, etc ..

thanks folks.

--
GJ

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

Предыдущее
От: Gustavo Rosso
Дата:
Сообщение: serial
Следующее
От: "Grzegorz Jaśkiewicz"
Дата:
Сообщение: Re: serial