Search Postgresql Archives

select into multiple variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a select statement in a pgpsql function that returns two columns 
and a single row.
I would like to place the two values into two variables in a single 
statement, but so far I couldn't find out what is the syntax for that.

I tried a couple of combinations of this but had no luck:

SELECT INTO
 instrumentheaderid_arg, subjectgroupheaderid_arg,
 instrumentnormheader.instrumentheaderid,
 instrumentnormheader.subjectgroupheaderid
FROM
 instrumentnormheader
WHERE instrumentnormheaderid=3

Thanks for the help.
B.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux