MySQL在select部分中迭代表并从部分复制表的次数是多少次?

时间:2017-07-12 07:04:55

标签: mysql sql select tree

我有下一个查询:

SELECT
    parent1.name,
    parent2.name
FROM myTable AS child, myTable AS parent1, myTable AS parent2
WHERE
    child.parentId = parent1.id AND
    parent1.parentId = parent2.id;

我在from块中将其放置3次。这是否意味着MySQL将扫描表3次?

0 个答案:

没有答案