Arrays in PL/PGSQL - Mailing list pgsql-general

From oberpwd@anubis.network.com (Wade D. Oberpriller)
Subject Arrays in PL/PGSQL
Date
Msg-id 200010181439.JAA25127@truck.network.com
Whole thread Raw
Responses Re: Arrays in PL/PGSQL  (Jan Wieck <janwieck@yahoo.com>)
List pgsql-general
Hello,

Does PL/PGSQL support arrays? Or is their a mechanism to select a set of
records from a table and iterate over all of them.

For example:

DECLARE recs AS RECORDS; //??
BEGIN
SELECT INTO recs * FROM mytable WHERE myfield = 'myvalue';
for i in 1 .. NumRecs loop
    ...
end loop;

Is there a way to do something like this??

Wade Oberpriller


pgsql-general by date:

Previous
From: "Jarmo Paavilainen"
Date:
Subject: SV: 7.1 devel and initdb core dumps
Next
From: "chris markiewicz"
Date:
Subject: too many clients?