public inbox for [email protected]
help / color / mirror / Atom feedFrom: Roger Mason <[email protected]>
Cc: [email protected]
Subject: Re: plpgsql select into
Date: Fri, 20 Aug 2021 13:04:20 -0230
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Hello Tom & Laurenz,
Thanks for your responses.
Laurenz Albe writes:
> Omit "INTO tabular_info" from the query.
> RETURN QUERY already is a destination for the query result.
Yes, if I omit the INTO clause I get data returned. So then how do I
insert the result of the plpgsql call into a table? This is what
happens if I try calling 'select into' in psql:
select into info_table from (select get_info('1043_1')) as info_split;
SELECT 1288
test=> select * from info_table ;
--
(1288 rows)
How do I access the data in 'info_table'?
Thanks,
Roger
view thread (8+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: plpgsql select into
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox