2016-10-01 33 views

回答

2

的转换使用str()

select str(col, 10, 7) 

据记载here

的另一种方法转换为decimal第一:

select convert(varchar(255), convert(decimal(10, 7), col)) 
+1

从不知道的'str' –

+0

@Prdp存在。 。 。它是SQL Server特有的。 –