Re: Iterating over an varchar array?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marcos Iuato" <iuato(at)samurai(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Iterating over an varchar array?
Date: 2004-05-25 18:47:49
Message-ID: 26206.1085510869@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Marcos Iuato" <iuato(at)samurai(dot)com(dot)br> writes:
> Declare
> mycars varchar[];
> car varchar;
> Begin
> For car in SELECT cars from table1 LOOP

I think the iteration variable for a FOR ... IN SELECT has to be a
record or rowtype variable.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wei Shi 2004-05-25 22:36:10 About table schema
Previous Message Alvaro Herrera 2004-05-25 18:29:45 Re: FW: Majordomo results: subscribe pgsql-general