Re: BUG #5193: should "select * from ab limitkkk" cause a syntax error?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5193: should "select * from ab limitkkk" cause a syntax error?
Дата
Msg-id 17180.1258421680@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5193: should "select * from ab limitkkk" cause a syntax error?  ("" <donniehan@126.com>)
Список pgsql-bugs
"" <donniehan@126.com> writes:
> postgres=# select * from a limitkkk;  ---->(seems equal "limit null")

> Should pg throws a syntax error?

If we did, we'd be violating the SQL standard.  The "limitkkk"
is a perfectly valid table alias.  There's no AS in front of it,
but unfortunately the spec allows and even encourages people to
omit AS.

            regards, tom lane

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

Предыдущее
От: ""
Дата:
Сообщение: BUG #5193: should "select * from ab limitkkk" cause a syntax error?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Multixact and prepared transactions