Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Aliasing 2

Status
Not open for further replies.

Ascalonian

Programmer
Jan 4, 2008
264
US
I was just curious if there is a difference between:
Code:
SELECT column_a AS some_column 
FROM DUAL;

or

Code:
SELECT column_a some_column 
FROM DUAL;

Is there any advantage to using the AS keyword?
 

Some Oracle versions do not recognize the "AS".
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 

PS: Otherwise it's equivalent... [noevil]

.

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Hi,
In addition ( and just barely related), by enclosing the alias in "s you can have nice mixed case column headings and spaces.

Select empname as "Employee Name" from mytable;, for instance

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top