标签:
convert(目标类型,要转换的数字);
cast(要转换的数字 as 目标类型);
如:
declare @score float;
set @score=1.6;
select convert(varchar(5),@score);
declare @score float;
set @score=1.6;
select cast(@score as varchar(5));
标签:
原文地址:http://www.cnblogs.com/huhuiliang/p/4343727.html