Re: Referring to derived column name in a RECORD

From: Joe Conway <mail(at)joeconway(dot)com>
To: David B <postgresql(at)thegatelys(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Referring to derived column name in a RECORD
Date: 2003-10-25 02:13:07
Message-ID: 3F99DC33.3010504@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

David B wrote:
> SELECT to_char( created_timestamp, 'DDMMYY' ) AS "joined_on",
<snip>
> r_app.joined_on ; -- HOW do I reference this value?...this does not work

Try either making that first line:

... AS joined_on,

(i.e. without the double quotes) or make the second one:

r_app."joined_on";

(i.e. with double quotes)

HTH,

Joe

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Julian North 2003-10-25 09:41:02 Re: naming conventions constraint
Previous Message David B 2003-10-24 23:19:42 Referring to derived column name in a RECORD