How does the where clause in My SQl Work ?

Posted by Eternal Learner on Stack Overflow See other posts from Stack Overflow or by Eternal Learner
Published on 2010-05-11T17:28:53Z Indexed on 2010/05/11 17:34 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

Hi All,

I have a doubt. Assume R and S are 2 relations with attributes A and B respectively . If I have a query

Select * 
From R, S
Where R.A = S.B 

Does this work like a double For Loop in say c or c++

For( i=0; i<n; i++)
    For( j=0; j<n; j++)
        if (i == j)
           //DO some work 

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query