TO_char error - Number format Mask - need phone number format
793663Jul 13 2012 — edited Jul 16 2012Hi 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