Using 'LIKE' with the result of a SQL subquery
问题 The following query is working absolutely fine for me: SELECT * From Customers WHERE Customers.ContactName = (SELECT FirstName FROM Employees as E, orders as O WHERE <condition> LIMIT 1); However, if i use LIKE instead of = to compare with the result of the subquery, I'm not getting any results. How do I use LIKE '%%' in the above query? 回答1: First, this query should not be working fine: SELECT * From Customers WHERE Customers.ContactName = (SELECT FirstName from Employees as E, orders as O