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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

TO_char error - Number format Mask - need phone number format

793663Jul 13 2012 — edited Jul 16 2012
Hi all,

i got a stuck in a basic thing. my input will be number (say 1 to 9999999999) i want that to be populated in this format ( 999-999-9999). i tried the below query, it doesnt help me.

select to_char(1234567890,'999-999-9999') from dual;

please tell me which function is most appropriate for this.


my input may be a single digit also, but my output should be in ten digits (ie: if i gave 1, o/p should be 000-000-0001)

kindly help me.

thanks,
Jeevanand.K
This post has been answered by theoa on Jul 13 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2012
Added on Jul 13 2012
16 comments
14,070 views