Just want to know why Oracle not allowed \"AS\" alias in Query. In My project all queries which i returned have alias keyword \"AS\".
For.eg;
Select t1.i
According to this and this this it should be part of the ISO SQL92. Maybe Oracle did not implement it because of backward compatibility.
In Oracle keywords like "AS", "JOIN", "COMMIT", "MODEL" still can be used as object names. So you can write something like:
select J.COMMIT AS
from JOIN J;
This will select column named "COMMIT" from table named "JOIN" and the column will be aliased to "AS".
While Oracle allows you to use AS
when defining column aliases, it doesn't allow you to use AS
when defining table aliases. It's just how Oracle works.
You can use as
(optional) for alias in column names but not for table. Using as
in aliases is Microsoft standard, while ORACLE supports ANSI SQL syntax which using as
in aliases is not a standard.