sql 格式化10个字符串

select right(replicate('0',10)+ltrim('123'),10)

结果:0000000123

原文地址:https://www.cnblogs.com/diandianxinghen/p/3523788.html