Mysql 删除重复的数据

-- 删除FunctionGUID重复的记录

delete from myFunctionConfig where myFunctionConfigId not in (

select t.max_id from

(select max(myFunctionConfigId) as max_id from myFunctionConfig group by FunctionGUID) as t

);

你可能感兴趣的:(Mysql,mysql)