Re: Referring to derived column name in a RECORD

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Referring to derived column name in a RECORD
Дата
Msg-id 3F99DC33.3010504@joeconway.com
обсуждение исходный текст
Ответ на Referring to derived column name in a RECORD  ("David B" <postgresql@thegatelys.com>)
Список 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



В списке pgsql-sql по дате отправления:

Предыдущее
От: "David B"
Дата:
Сообщение: Referring to derived column name in a RECORD
Следующее
От: Michael Glaesmann
Дата:
Сообщение: Re: problem with sql