SQL 2003 (the newest standard I have easy access to) does not specify an alias for the table name in 14.11 (p847) see here
As you are referring to SQLite, there is a very nice EBNF als syntax diagram in the documentation which refers to “qualified-table-name” which again does not specify an alias.
So yes, this common extension to the standard seems not to be implemented by SQLite. As we see in the examples before, DBMS that implement such an extension do vary in their syntax and meaning. In PostgreSQL for example an alias completely hides the original table name and it would have a different meaning if you specify the table to update in the FROM clause whereas SQL Server seems to encourage this.
[quote=338044:@Tobias Bussmann]SQL 2003 (the newest standard I have easy access to) does not specify an alias for the table name in 14.11 (p847) see here
As you are referring to SQLite, there is a very nice EBNF als syntax diagram in the documentation which refers to “qualified-table-name” which again does not specify an alias.
So yes, this common extension to the standard seems not to be implemented by SQLite. As we see in the examples before, DBMS that implement such an extension do vary in their syntax and meaning. In PostgreSQL for example an alias completely hides the original table name and it would have a different meaning if you specify the table to update in the FROM clause whereas SQL Server seems to encourage this.[/quote]
I knew I was stupid and you have just confirmed it
I have re-read Dave’s original post and seen that he had already tried my suggestion anyway. Sorry for cluttering the thread.