SQL Server 数字字符串位数不够补0 实现思路 先给字符串左边拼接一定位数的‘0’,使用 Right函数 取 字符串右边的固定位数字符串 SQL select right('00000000'+ '1111',8) as bit8Numstr --结果 --00001111