mysql 比较两个表数据优化问题
PHP中文网
PHP中文网 2017-04-17 16:42:31
0
2
777
PHP中文网
PHP中文网

认证0级讲师

reply all(2)
Ty80
// acc_id 加索引
SELECT accinfo_id FROM acc_accinfo acc

WHERE acc.`is_delete` = 1 AND  acc_id NOT in (
    SELECT  acc_id FROM acc_circulate_setting where area_id = 1  AND is_delete = 1 
    );
    
 // 或者分2步查   
阿神

Is the accinfo_id of acc_accinfo not indexed

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template