Re: Error when trying to use a FOR loop

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Error when trying to use a FOR loop
Date: 2006-07-21 15:39:20
Message-ID: 20060721153919.GA31295@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am 21.07.2006, um 9:26:21 -0600 mailte Kevin Nikiforuk folgendes:
> Many thanks to Stephan, Richard and George. When I was reading the documentation about FOR loops, I didn't realize that I was in the plpgsql section!
>
> CREATE OR REPLACE FUNCTION rgio() RETURNS integer as $$
> BEGIN
> DECLARE lv RECORD;

lv is a record...

> FOR lv IN SELECT DISTINCT rg FROM ldevrg LOOP

untested: tv.rg

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-07-21 15:40:11 Re: Error when trying to use a FOR loop
Previous Message Kevin Nikiforuk 2006-07-21 15:26:21 Re: Error when trying to use a FOR loop