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: (view raw, whole thread or download thread mbox)
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-2017 The PostgreSQL Global Development Group