Re: N-to-N Model: Table Size vs Complexity
Posted by: Huu Da Tran
Date: September 03, 2008 08:04AM

select * from friends where (userID=2 and friendID=1) or (userID=1 and friendID=2)

Huu Da
MySQL flirter

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.