for loop help

From: "Luis Silva" <lfs12(at)hotmail(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: for loop help
Date: 2006-04-04 23:01:02
Message-ID: BAY117-DAV104D1A9250CB686ABAB6DDB5CA0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi! Is it possible to know in a loop in pl/pgsql if the next element is de
last? exemple

DECLARE
asds Record;

BEGIN

FOR asds IN EXECUTE 'select id from user_table' LOOP

IF asds.id.next = last THEN
......
END IF;

END LOOP;

tks

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-04-05 02:48:36 Re: WAL to get back data in 7.4.
Previous Message doris riedl 2006-04-04 22:34:15 WAL to get back data in 7.4.