select RIGHT('0000'+CAST( '123' AS nvarchar(50)),4) select right('00000000'+'123',8) 相关文章: 2022-01-12 2021-09-15 2021-04-18 2021-08-28 2022-12-23