MySQL Forums
Forum List  »  Optimizer & Parser

Re: Select last row that is less than or equal to a date
Posted by: David Marcus
Date: January 30, 2013 05:50PM

SHOW SESSION STATUS LIKE 'Created_tmp_tables';
"Created_tmp_tables","1"

select * from History where HistoryPlayer = 59161 and HistoryDate <= '2012-01-01' order by HistoryDate desc limit 0,1;

One row returned.

SHOW SESSION STATUS LIKE 'Created_tmp_tables';
"Created_tmp_tables","2"

Why is it creating a temporary table?

Do I have to uninstall 5.5 to install the 5.6 Release Candidate?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Select last row that is less than or equal to a date
1759
January 30, 2013 05:50PM


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.