Re: pgplsql, how to save row variable to a table row - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: pgplsql, how to save row variable to a table row
Date
Msg-id 47EA3CB9.6070001@iol.ie
Whole thread Raw
In response to pgplsql, how to save row variable to a table row  ("josep porres" <jmporres@gmail.com>)
Responses Re: pgplsql, how to save row variable to a table row
Re: pgplsql, how to save row variable to a table row
List pgsql-general
On 26/03/2008 11:59, josep porres wrote:

> row_tempf.field1 := value1;
> row_tempf.field2 := value3;
> ...
> row_tempf.fieldN := valueN;
>
> -- NOW INSERT row_tempf  in the associated table
> -- ???

Easy! -

insert into <tablename> ( <column> ... )
   values (row_tempf.field1, row_tempf.field2, ... );

:-)

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Install Postgresql on Win2000 with Admin Rights
Next
From: "josep porres"
Date:
Subject: Re: pgplsql, how to save row variable to a table row