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!

Clarification required in the TO_NUMBER function

Boobal GanesanMay 15 2017 — edited May 15 2017

Hello Folks,

I want to know what the TO_NUMBER function does when we add the format string 'X' as its second parameter.

For example, consider the below query,

select to_number('12345','XXXXX') from dual;

Result:

74565

Thanks!

This post has been answered by Cookiemonster76 on May 15 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2017
Added on May 15 2017
6 comments
281 views