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.

ex)
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


Subject
Views
Written By
Posted
limit & scala subquery
2336
May 08, 2012 10:33PM
1114
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.