Loading

sql 数字转换为字符串补0

select right('00000000000'+convert(varchar(5),123),5)

select right('00000000000'+cast(123   as   varchar(6)),6)

posted @ 2012-02-08 14:53  Sam Xiao  阅读(1943)  评论(0编辑  收藏  举报