Skip to Main Content

Oracle Database Discussions

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!

rename a column in query

525458Jun 12 2007 — edited Jun 12 2007
Hello,

I want to rename a column in a query. What are the possible method?

1. We use "AS" to rename.

E.g.

SQL> select sysdate as "Today's date" from dual;

Today's d
---------
12-JUN-07

The above query returns "Today's Date". But the column name in the result set is not colplete "Today's Date" Why?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2007
Added on Jun 12 2007
5 comments
305 views