01
002
0003333A
怎么去掉前面的所有0呢?
------解决方案--------------------
- SQL code
update tbset col = stuff(col,1,patindex('%[^0]%',col)-1,'')where left(col,1) = 0
update tbset col = stuff(col,1,patindex('%[^0]%',col)-1,'')where left(col,1) = 0