cnblogs.com的html文件
This commit is contained in:
5
dcrenl/SQL Server 加前导0.html
Normal file
5
dcrenl/SQL Server 加前导0.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user