select *
from
(
SELECT id, imei1, status
FROM `owarranty_imei` mto
WHERE EXISTS
(
SELECT 1
FROM `owarranty_imei` mti
WHERE mto.imei1=mti.imei1
LIMIT 1, 1
)
) t1
left join `owarranty_warranty_activations` as t2 on t1.id=t2.imei_id
where t2.id is null
limit 100
这是我的问题。在奥瓦兰蒂,伊梅有超过10万张唱片。我想从imei表中获取owarranty\U imei不在owarranty\U激活表中的副本。这个查询只对少数记录起作用,但当我对超过1000000条记录运行它时,它就不起作用了
1条答案
按热度按时间ngynwnxp1#