Dmytro
Dmytro

Reputation: 90

How to SELECT all names that consist of 2 words

How to use LIKE to search for all names that consist of 2 any words.

Upvotes: 0

Views: 2028

Answers (1)

Gordon Linoff
Gordon Linoff

Reputation: 1270723

Assuming words are separated by a space:

where name like '% %' and name not like '% % %'

Upvotes: 5

Related Questions