MySQL Forums
Forum List  »  Stored Procedures

Re: create function throwing error 1064 with mysql 5.6.13, but created in mysql 5.0
Posted by: Peter Brawley
Date: October 08, 2014 11:11AM

Yikes

(i) give readers & responders a break, start a new thread for a new topic,

(ii) give readers & responders a break, format posted queries for human readability,

(iii) MySQL can optimise each of your 29 correlated subqueries in the SELECT clause, but it can't optimise retrieval of the rowset itself; with this query, I'd start by moving the SELECT subqueries to the FROM clause as JOINs, then re-analyse for optimisation.

Options: ReplyQuote




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.