Reputation: 90
How to use LIKE to search for all names that consist of 2 any words.
Upvotes: 0
Views: 2028
Reputation: 1270723
Assuming words are separated by a space:
where name like '% %' and name not like '% % %'
Upvotes: 5