Quantcast
Viewing all articles
Browse latest Browse all 82150

Join with 'LIKE' operator and 'OR' operator in where query

1. I would like to know if there is a posibility to use the 'LIKE' operator in a join instance:
->join(Join::inst('keywords', 'object')
						->join('string1', 'string2')
if I have string1 'something' and string2 'something more', can I join the parent and child table using the mysql LIKE operator?


2. Use 'OR' operator in where query
from docs:
Where query - multiple conditions are bound as ANDs.
If I have this case:
$out = $editor
	->where('id_kw', '1', '=')
	->where('id_url', '1', '=')
can this be translated in a similar mysql query 'WHERE id_kw = 1 OR id_url = 1' or it's possible only using the 'AND' operator?

Viewing all articles
Browse latest Browse all 82150

Trending Articles