Skip to Main Content

Oracle Database Discussions

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!

padding with zero according to field size!

misterimranMay 8 2009 — edited May 8 2009
Dear All,

I want to add leading zeros, as per numeric column width while selecting data through sql query. Kindly let me know how to do this.

For example if in a table there is field empID number(3)

Now if the data is

1
23
999
45
7

The result i should get should be:

001
023
999
045
007

Thanks, Imran
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2009
Added on May 8 2009
3 comments
894 views