CAST格式化列数据前加0
时间:2014-07-25 16:47:41
收藏:0
阅读:504
update TableName set ConsultantID=right(cast(‘1000000000‘+CONVERT(int,ConsultantID) as varchar(10)),9)
原文:http://www.cnblogs.com/monkeyfather/p/3867879.html
评论(0)