我有一個SELECT語句有三個內部聯接涉及兩個表。 除了在ON和WHERE子句中引用的列上創建索引之外,還有其他的事情可以優化連接,就像在重寫查詢中一樣?涉及三個表的內部聯接
SELECT
...
FROM
my_table AS t1
INNER JOIN
my_table AS t2
ON
t2.id = t1.id
INNER JOIN
other_table AS t3
ON
t2.id = t3.id
WHERE
...