请问怎样将字符串转成float行例如 '3.01 ' 我要转成FLOAT的3.01[解决办法] declare @s varchar(100) set @s = '3.01 ' select cast(@s as decimal(10,2))