Re: BUG #5193: should "select * from ab limitkkk" cause a syntax error? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5193: should "select * from ab limitkkk" cause a syntax error?
Date
Msg-id 17180.1258421680@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5193: should "select * from ab limitkkk" cause a syntax error?  ("" <donniehan@126.com>)
List 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 by date:

Previous
From: ""
Date:
Subject: BUG #5193: should "select * from ab limitkkk" cause a syntax error?
Next
From: Heikki Linnakangas
Date:
Subject: Re: Multixact and prepared transactions