Re: column name order matters in insert into foo from bar - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject Re: column name order matters in insert into foo from bar
Date
Msg-id 2f4958ff0812040537y511ce4dasa849eb5875c8220b@mail.gmail.com
Whole thread Raw
In response to Re: column name order matters in insert into foo from bar  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: Gustavo Rosso
Date:
Subject: serial
Next
From: "Grzegorz Jaśkiewicz"
Date:
Subject: Re: serial