Hi ,
I want phone number 999-999-9999 this format, Below query working correctly but i want without using how to get this.
select regexp_replace(lpad(67890,10,'0'),'(.{3})(.{3})(.{4})','\1-\2-\3') from dual;
output : 000-006-7890
can any one suggest me.
Thanks,