MySQL Forums
Forum List  »  MyISAM

Re: Got error 64 when reading table '/tmp/#sql_5389_0'
Posted by: Rick James
Date: March 10, 2012 06:29PM

Why use a subquery? Won't this work?
SELECT  `stuffA`, `stuffB`, `tID`,
        STR_TO_DATE(`Submit Date_Time`, '%d-%M-%Y') AS 'mydate'
    FROM  my.database t
    WHERE  `cID` = '123456'
      AND  `stuffA` = 1
    WHERE  mydate <= '2012-03-01'
    ORDER BY mydate DESC

(Blanks in column names is asking for trouble.)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Got error 64 when reading table '/tmp/#sql_5389_0'
1595
March 10, 2012 06:29PM


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.