5 lines
191 B
HTML
5 lines
191 B
HTML
<div>declare @a int</div>
|
|
<div>declare @b int</div>
|
|
<div>set @a = 1 --需要显示的数字</div>
|
|
<div>set @b = 3 --显示位数</div>
|
|
<p>select right(cast(power(10,@b) as varchar)+@a,@b)</p> |