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!

Removing leading zeros from a column

user518071Feb 22 2010 — edited Feb 22 2010
Hi,
I want to remove leading zeros from a varchar column which will store alpha numeric characters.

Here's the scenario:
0 ->0
00 ->0
000 ->0

If I use ltrim(column,'0') it returns null


Thanks,
Mahender.

Edited by: user518071 on Feb 22, 2010 12:00 PM
This post has been answered by MichaelS on Feb 22 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2010
Added on Feb 22 2010
5 comments
15,697 views