我可以编写具有两种不同类型的查询:
SELECT *
FROM `pictures`
WHERE `field_id` NOT IN (SELECT `field_id`
FROM `table`
WHERE `confirm` = 0)
和
SELECT *
FROM `pictures`
WHERE `field_id` NOT IN (12,56,435,44,25,52,876,99)
但是第二个例子非常快!
速度更快的原因是什么?