Re: (DatabaseError) ORA-00905: missing keyword

From: Norman Dunbar <oracle_at_dunbar-it.co.uk>
Date: Mon, 18 Mar 2013 10:26:37 +0000
Message-ID: <5146EBDD.4090008_at_dunbar-it.co.uk>



On 18/03/13 10:20, rajugaru.vij_at_gmail.com wrote:
> Sorry, I didn't get it.. You mean AS keyword is not require to alias a table?
> Sent on my BlackBerry®

Indeed. Use of AS is restricted to aliasing column names, but not table names. Consistent?

Select dummy as fred
from dual as flintstone;

Will not work. It must be:

Select dummy as fred
from dual flintstone;

or drop the As altogether:

Select dummy fred
from dual flintstone;

Cheers,
Norm.

-- 
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

Company Number: 05132767
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Mar 18 2013 - 11:26:37 CET

Original text of this message