MySQL Forums
Forum List  »  Optimizer & Parser

limit & scala subquery
Posted by: jongse park
Date: May 08, 2012 10:33PM

I confused the order of mysql sql excution.
table t1 has 1 billion records.

select col1, col2, (scalar subquery .. table t1)
from t1, t2
where t1.col3 = t2.col3
order by col3
limit 45;

in above case, when dose scalar subquery excute? after limit 45?
or after order by ?

Options: ReplyQuote

Written By
limit & scala subquery
May 08, 2012 10:33PM
May 09, 2012 09:21PM

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.