Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group