Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trim 0's 1

Status
Not open for further replies.

zatch

MIS
Oct 11, 2001
75
US
I have varchar field whose data looks similar to this:

0000345
0023456
0123456
0000001

What I need to do is "trim" the zero's from the beginning of each record.

Any help is greatly appreciated.

Zatch
 
Code:
select cast(yourfield as numeric)

[bandito] [blue]DBomrrsm[/blue] [bandito]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top