Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Trim leading zeros

$
0
0

My records are like this.

Col1

-----

00001

03456

00577

05011

00099

01090

 

I want to remove the zeros on the left and the answer should be like this.

 

Col1

-----

1

3456

577

5011

99

1090

 

How to trim the leading zeros.

Thanks.

 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>