标签: 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次?
from