Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use double quotes in column alias

653718Jan 14 2010 — edited Jan 14 2010
Hi,
I would like to alias a column that would look something like this <University "John Smith"> (without <,> chars).
I know in oracle when you use aliases you need to enclose the column name in double quotes if there are "special" characters.
In other words how can I write the query below:

select 1 as University "John Smith" from dual;

Thank you

Edited by: orange_square on Jan 14, 2010 7:39 AM

Edited by: orange_square on Jan 14, 2010 7:40 AM

Edited by: orange_square on Jan 14, 2010 7:40 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2010
Added on Jan 14 2010
2 comments
4,760 views