Re: Row fields by position in a cursor

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mike Preston" <MPreston(at)mosscodilis(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Row fields by position in a cursor
Date: 2005-03-01 21:27:14
Message-ID: 23212.1109712434@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mike Preston" <MPreston(at)mosscodilis(dot)com> writes:
> Since I won't know in advance the fieldnames being passed by the SQL
> string, I'd like to dereference the column fields by position. Can
> anybody tell me the syntax for doing this?

There isn't one, at least not in plpgsql. You might have some success
in one of the other PL languages --- certainly pltcl or 8.0 plperl can
do this.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Romagnoli 2005-03-01 21:30:19 Re: Novice Question
Previous Message Michael Romagnoli 2005-03-01 21:23:03 Novice Question