Arrays in PL/PGSQL

From: oberpwd(at)anubis(dot)network(dot)com (Wade D(dot) Oberpriller)
To: pgsql-general(at)postgresql(dot)org (general-help postgresql)
Subject: Arrays in PL/PGSQL
Date: 2000-10-18 14:39:42
Message-ID: 200010181439.JAA25127@truck.network.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message chris markiewicz 2000-10-18 15:20:57 too many clients?
Previous Message Jarmo Paavilainen 2000-10-18 14:04:54 SV: 7.1 devel and initdb core dumps