dbTalk Databases Forums  

[SQL] plpgsql : adding record variable to table

mailing.database.pgsql-sql mailing.database.pgsql-sql


Discuss [SQL] plpgsql : adding record variable to table in the mailing.database.pgsql-sql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
thomas veymont
 
Posts: n/a

Default [SQL] plpgsql : adding record variable to table - 04-18-2012 , 12:41 PM






hi,

say I have the following (simplified for discussion) pl/pgsql function:

FUNCTION myfunction ( ...) RETURNS TABLE ( elem1 integer, elem2 text, ...)
DECLARE
g RECORD
BEGIN
FOR g in SELECT colum1, column2 FROM someTable
LOOP

--
Sent via pgsql-sql mailing list (pgsql-sql (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.