在SQL Server中,如果我有一个数字
n
,且n>=0 and n<=100
,如何使用SQL将其转换为字符串?1 => '01'
2 => '02'
...
10 => '10'
99 => '99'
这类似于printf函数。
printf ('%2d", n);