场景1 : 更新cjq表的一个字段,发现执行时间半个小时以上还没执行结束
UPDATE t_hplc_cjq SET cjq_type=2 WHERE cjq_type IS NULL AND id IN ( SELECT cjq_id FROM t_hplc_family_import GROUP BY cjq_id HAVING COUNT(*)=1 ) ;
解决办法:把8万个cjq_id单独查询出来,然后更新
UPDATE t_hplc_cjq SET cjq_type=2 WHERE cjq_type IS NULL AND id IN ( 41, 42, 43, ... )
标签:执行,hplc,Update,更新,InnoDB,集锦,cjq,type,id From: https://www.cnblogs.com/smileblogs/p/16624077.html