declare @a int
declare @b int
set @a = 1 --需要显示的数字
set @b = 3 --显示位数

select right(cast(power(10,@b) as varchar)+@a,@b)