-- 当mark_way字段的值为'划拨用地'时把该字段值修改为'00'
-- 当mark_way字段的值为'出让用地'时把该字段值修改为'01'
-- 否则把该字段的值修改为''
update ais_clsland a set a.mark_way=(CASE WHEN a.mark_way='划拨用地' THEN '00' WHEN a.mark_way='出让用地' THEN '01' ELSE '' END)
UPDATE `fwdata-prd-v2`.barcode_sn_record a SET a.color = (CASE WHEN a.color = 'red' THEN '红色' WHEN a.color = 'blue' THEN '蓝色' WHEN a.color = 'green' THEN '绿色' WHEN a.color = 'yellow' THEN '黄色' WHEN a.color = 'double' THEN '黄绿双色' ELSE '' END) WHERE color IN ('red' , 'blue', 'green', 'yellow', 'double');