MySQL Forums
Forum List  »  Optimizer & Parser

Is it possible to avoid "Using temporary" when distinct is used with join?
Posted by: Wai Yip Lau
Date: February 25, 2010 06:33PM

Let say I have this query:

SELECT DISTINCT(consumer_id) FROM consumers INNER JOIN consumer_opts ON consumer_id=consumer_ref;

And I have the id as the primary key. I always get the "using temporary" notice.

I can't use a right join because I need to look at some extra columns in the consumer_opts table.

Options: ReplyQuote


Subject
Views
Written By
Posted
Is it possible to avoid "Using temporary" when distinct is used with join?
3623
February 25, 2010 06:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.