去掉前导0
01
002
0003333A
怎么去掉前面的所有0呢?
[解决办法]
- SQL code
update tbset col = stuff(col,1,patindex('%[^0]%',col)-1,'')where left(col,1) = 0
发布时间: 2012-07-24 17:47:58 作者: rapoo
去掉前导0
01
002
0003333A
怎么去掉前面的所有0呢?
[解决办法]
update tbset col = stuff(col,1,patindex('%[^0]%',col)-1,'')where left(col,1) = 0