现在的位置: 首页 > 综合 > 正文

纯sql语句填充0

2012年08月14日 ⁄ 综合 ⁄ 共 156字 ⁄ 字号 评论关闭

select right('00000'+convert(varchar,22),5) --返回00022
select right('00000'+convert(varchar,1),5) --返回00022
select right('00000'+convert(varchar,999999),5) --返回99999

抱歉!评论已关闭.