SQL替換

select CONCAT('str1',IFNULL(UserName,''),'str2'),CONCAT('str3',IFNULL(CarCode,''),'str4') carCode,CONCAT('str5',IFNULL(UserTel,''),'str6'),CONCAT('str7',Bgndt,'str8'),CONCAT('str9',Enddt,'strs')from tc_userinfo where !ISNULL(CarCode) and CarCode!=''
UNION 
select CONCAT('str1',IFNULL(UserName,''),'str2'),CONCAT('str3',IFNULL(CarCode,''),'str4') carCode,CONCAT('str5',IFNULL(UserTel,''),'str6'),CONCAT('str7',Bgndt,'str8'),CONCAT('str9',Enddt,'strs') from tc_userinfo where !ISNULL(CarCode1) and CarCode1!=''
UNION 
select CONCAT('str1',IFNULL(UserName,''),'str2'),CONCAT('str3',IFNULL(CarCode,''),'str4') carCode,CONCAT('str5',IFNULL(UserTel,''),'str6'),CONCAT('str7',Bgndt,'str8'),CONCAT('str9',Enddt,'strs') from tc_userinfo where !ISNULL(CarCode2) and CarCode2!=''
UPDATE t_ic_vehicle_management SET id = REPLACE(UUID(), '-', '') WHERE id != '';