select cast('2.123' as numeric)
--字符型转数值型,取整数部分值
select cast('2.123' as decimal(18,4))
--字符型转数值型,保留小数
标签:字符,--,数值,cast,SQL,2.123 From: https://www.cnblogs.com/jxw-29/p/17603225.html
select cast('2.123' as numeric)
--字符型转数值型,取整数部分值
select cast('2.123' as decimal(18,4))
--字符型转数值型,保留小数
标签:字符,--,数值,cast,SQL,2.123 From: https://www.cnblogs.com/jxw-29/p/17603225.html