MySQL Forums
Forum List  »  InnoDB

Re: Tricky Join Problem
Posted by: Martin van Kalken
Date: November 12, 2008 11:48PM

This will work but may be a problem depending on the number of records as it will scan the entire table twice.

SELECT * FROM t1 INNER JOIN t2 ON t2.f1=LEFT(t1.f1,LENGTH(t2.f1))

Options: ReplyQuote


Subject
Views
Written By
Posted
3004
October 27, 2008 09:32PM
1848
October 28, 2008 01:20AM
1969
October 28, 2008 04:27AM
Re: Tricky Join Problem
1919
November 12, 2008 11:48PM


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.