Reputation: 21
I'm looking to find specific characters a column that has addresses. So this has numbers, characters and spaces. Using "like" does not seem to work. I tried using "instr," but I can't get it right....Is it because it has spaces?
So for example: 1234 Arlington Hwy
I want to pull up any address records that has "Hwy" in it. Help please!
Upvotes: 0
Views: 650
Reputation: 181
SELECT * FROM mytable
WHERE column1 LIKE '*Hwy*'
The * operator acts as a wild-card, allowing anything to come before and after "Hwy" to return.
Upvotes: 2