Cast () function type conversion

service_fee field definition: `service_fee` decimal (14,4) NULL DEFAULT NULL COMMENT 'handling costs, tax',

1)round(sum(service_fee),2) 

 

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

 

Guess you like

Origin www.cnblogs.com/Small-sunshine/p/11387914.html