How to combine “LIKE” with “IN” in a MYSQL query?
问题 I have this code to search for a matching result in a MYSQL database: $where[] = 'p.id IN ( SELECT adcfvc.advert_id FROM #__koparent_advert_specific_fields_values AS adcfvc WHERE adcfvc.advert_id = p.id AND adcfvc.field_name = ' . $db->Quote($sf_key) . ' AND ' . $db->Quote(JString::strtolower($sf_value)) . ' = adcfvc.field_value )'; I want to change the above search query from selecting exact match using the equal sign "=" operator to selecting any matching result using the "LIKE" operator