Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is faster?

Status
Not open for further replies.

SFiend

Programmer
Jun 4, 2004
39
CZ
SELECT I.*
FROM Form F, Inp I
WHERE F.Id LIKE $Id AND F.Id LIKE I.IdForm

or

SELECT I.*
FROM Inp I, Form F
WHERE I.IdForm LIKE $Id AND I.IdForm LIKE F.Id

what do you think?

 
NO? I use it all the time I want to join tables. Is any faster solution?
 
I think the optimizer should understand that it's should use equality.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top