select case RIGHT(RESOURCE_SIZE,2) when 'MB' THEN SUBSTRING_INDEX(RESOURCE_SIZE,'MB',1)*1024 ELSE SUBSTRING_INDEX(RESOURCE_SIZE,'KB',1) END as aaa from t_resource_base LIMIT 0,10;
select case RIGHT(RESOURCE_SIZE,2) when 'MB' THEN SUBSTRING_INDEX(RESOURCE_SIZE,'MB',1)*1024 ELSE SUBSTRING_INDEX(RESOURCE_SIZE,'KB',1) END as aaa from t_resource_base LIMIT 0,10;