select RIGHT('0000'+CAST( '123'  AS nvarchar(50)),4) DWBH

公式 RIGHT('位数'+CAST(要判断的字段 AS nvarchar(50)),位数 )

相关文章: