去掉前导零

去掉前导0010020003333A怎么去掉前面的所有0呢?[解决办法]SQL codeupdate tbset col stuff(col,1,patind

去掉前导0
01
002
0003333A
怎么去掉前面的所有0呢?

[解决办法]

SQL code
update tbset col = stuff(col,1,patindex('%[^0]%',col)-1,'')where left(col,1) = 0