Re: insert values from a ROW object

From: Michael Moore <michaeljmoore(at)gmail(dot)com>
To: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: insert values from a ROW object
Date: 2016-09-22 21:44:07
Message-ID: CACpWLjMqxPikwWF+gYb8xa3birV9aJnek6qhW1d8-LHvDrYUSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

by the way, the row structure of temp_rslt and final_rslt are identical.

On Thu, Sep 22, 2016 at 2:42 PM, Michael Moore <michaeljmoore(at)gmail(dot)com>
wrote:

> for a in select * from temp_rslt
> loop
> insert into final_rslt select row(a.*);
> end loop;
>
> I want to do something like the above. I don't want to have to name each
> 'a.' variable.
> Is it possible?
>
> TIA
> Mike
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message David G. Johnston 2016-09-22 21:55:55 Re: insert values from a ROW object
Previous Message Michael Moore 2016-09-22 21:42:56 insert values from a ROW object