Re: Problem with ALIAS?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: KeithW(at)narrowpathinc(dot)com
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, PostgreSQL Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Problem with ALIAS?
Date: 2004-12-22 16:08:43
Message-ID: 4223.1103731723@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Keith Worthington" <keithw(at)narrowpathinc(dot)com> writes:
> Thanks Michael. I understand why PL/pgSQL is confused. I was trying to set
> the value of that variable for later use not assign a column alias. How do I
> store the value returned by the query?

SELECT ... INTO, not SELECT ... AS

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-12-22 16:37:42 Re: Encoding problems
Previous Message Keith Worthington 2004-12-22 14:40:32 Re: Problem with ALIAS?