cast() 函数类型转换

service_fee  字段定义:`service_fee`  decimal(14,4) NULL DEFAULT NULL COMMENT '手续费金额,含税' ,

1)round(sum(service_fee),2) 

2) cast(round(sum(service_fee),2)  as  char)

猜你喜欢

转载自www.cnblogs.com/Small-sunshine/p/11387914.html