Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
В списке pgsql-sql по дате отправления:
| От | Paul Lambert |
|---|---|
| Тема | Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...) |
| Дата | |
| Msg-id | 4785C744.6080406@optusnet.com.au обсуждение исходный текст |
| Ответ на | Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...) (Ken Johanson <pg-user@kensystem.com>) |
| Ответы |
Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT
col1 AS foo, ...)
|
| Список | pgsql-sql |
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" > > For compatibility with other databases, what objections might be argued > in allowing this syntax in the future? > > On the 'pros' side I think it eases migration to PG, shortens code, is > similar syntax to shorthand table aliases, and some users might argue it > has become defacto syntax among DBs. > > Regards, > Ken Briefly discussed a couple of weeks ago. See http://archives.postgresql.org/pgsql-general/2008-01/msg00089.php
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера