MySQL Forums
Forum List  »  MySQL Query Browser

Help with JOIN ON query using wildcard
Posted by: janini janini
Date: November 27, 2010 12:29PM

Hello all,

I'm having problems to get a JOIN query working.
The query looks something like

SELECT *
FROM table1
LEFT JOIN table2 ON table1.column1 = '%' + table2.column2;

I now the syntax is not right. My question is, is it possible to use a wildcard for the table2.column2 statement?
If so, what's the right syntax?
Wasted already some time on it and couldn't find help so far.

Thanks!

Cheers

janini

Options: ReplyQuote


Subject
Written By
Posted
Help with JOIN ON query using wildcard
November 27, 2010 12:29PM


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.