修改客户表 编号为 0101007002,0101007003的楼栋号 007-1-102,007-1-201
UPDATE gas_customer
SET building= CASE
WHEN govid=380 and customer_no='0101007002' THEN '007-1-102'
WHEN govid=380 and customer_no='0101007003' THEN '007-1-201'
END
WHERE
govid=380 and customer_no IN (
'0101007002',
'0101007003'
)