Searching LIKE a word
That’s right, we can use SQL to find data that is LIKE a word!
And when we combine it with Wildcards (%)
1 | SELECT * FROM People WHERE Country LIKE 's%' |
This will return all of the records where the Country begins with S
1 | SELECT * FROM People WHERE Country LIKE '%d' |
This will return all of the records where the Country ends with S
And using both:
1 | SELECT * FROM People WHERE Country LIKE '%land%' |
This will return any records where the Country CONTAINS land
