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!

"Select" xxx "as" Statement

525295Jul 31 2006 — edited Jul 31 2006
Sorry to bother you with this newbie-type of question, but I cannot find a suitable solution for my problem.

I'm porting a MySQL Script to Oracle's SQL script and got the following problem: how can I express the following line of code in the Oracle accent? The calendarweek can be expressed by "TO_CHAR(datetime,'WW')", but isn't there an adequate expression for MySQL's "SELECT function(column) AS new_column FROM source.table" ?

SELECT DATE_FORMAT(datetime, 'WW') AS `CALENDARWEEK` FROM iops.detail;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2006
Added on Jul 31 2006
3 comments
1,513 views