Почему MySQL не использует ни один из этих возможных ключей?

У меня следующий запрос:

SELECT t.id
FROM account_transaction t
JOIN transaction_code tc ON t.transaction_code_id = tc.id
JOIN account a ON t.account_number = a.account_number
GROUP BY tc.id

Когда я выполняю EXPLAIN , первая строка показывает, среди прочего, следующее:

table: t
type: ALL
possible_keys: account_id,transaction_code_id,account_transaction_transaction_code_id,account_transaction_account_number
key: NULL
rows: 465663

Почему ключ NULL ?

23
задан Jason Swett 19 April 2011 в 16:11
поделиться