Re: pgplsql, how to save row variable to a table row

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: pgplsql, how to save row variable to a table row
Дата
Msg-id 47EA3CB9.6070001@iol.ie
обсуждение исходный текст
Ответ на pgplsql, how to save row variable to a table row  ("josep porres" <jmporres@gmail.com>)
Ответы Re: pgplsql, how to save row variable to a table row  ("josep porres" <jmporres@gmail.com>)
Re: pgplsql, how to save row variable to a table row  (Craig Ringer <craig@postnewspapers.com.au>)
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Install Postgresql on Win2000 with Admin Rights
Следующее
От: "josep porres"
Дата:
Сообщение: Re: pgplsql, how to save row variable to a table row