sql 判断字符类型能否转换为数值类型

select sum(convert(decimal(20,2),列明)) from 表名  where IsNumeric(列名) = 1

猜你喜欢

转载自www.cnblogs.com/xiemin-minmin/p/12195977.html