Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)

Поиск
Список
Период
Сортировка
От Ken Johanson
Тема Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
Дата
Msg-id 4785CBE9.6000108@kensystem.com
обсуждение исходный текст
Ответ на Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)  (Paul Lambert <plengada@optusnet.com.au>)
Ответы Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)  (Paul Lambert <plengada@optusnet.com.au>)
Список pgsql-sql
Paul Lambert wrote:
> Ken Johanson wrote:
>> I notice PG doesn't allow shorthand column labels -- it requires the 
>> 'AS' operand.
>>
>> SELECT col1 foo, ...; -> ERROR: syntax error at or near "foo"
>
> Briefly discussed a couple of weeks ago.
> 
> See http://archives.postgresql.org/pgsql-general/2008-01/msg00089.php
> 


Interesting thread(s)!

What I didn't see discussed was the possibility of making a server 
and/or session option, where we could elect to turn-off the old behavior 
(PG specific behavior) and enable the standard/shorthand syntax. Users 
need a migration path.

I personally cant ever see using those PGisms/features and would choose 
to enable the standard mode. I think I'd have fewer compatibility problems.

Ken




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

Предыдущее
От: Paul Lambert
Дата:
Сообщение: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
Следующее
От: Paul Lambert
Дата:
Сообщение: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)