Subject Re: [firebird-support] Why PLAN token is not allowed after ORDER BY?
Author Mark Rotteveel
On Sun, 3 Jun 2012 08:59:14 -0600, Alec Swan <alecswan@...> wrote:
> Thanks, Mark.
>
> I found FB 2.5 SQL Language reference here
> http://www.firebirdsql.org/refdocs/langrefupd25-select.html but it does
> not contain the grammar for the entire SELECT statement, just individual
> fragments, such as JOIN, ORDER BY, etc.
>
> Where can I find a comprehensive syntax definition for the entire SELECT
> statement?

If you want the definitive source look at /src/dsql/parse.y as that
contains the grammar definition used by Firebird. However it is just barely
human readable ;)

Mark