Hello, I have a table in the database:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ v3_url_alias โ โ โโโโโฆโโโโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโฃ โ id โ query โ keyword โ โ โโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโฃ โ 1 โ product_id=20 โ 540-65R38-K_028 โ โ 2 โ product_id=21 โ 18.00R33-EM_DT-150% โ โโโโโโฉโโโโโโโโโโโโโโโโฉโโโโโโโโโโโโโโโโโโโโโโ
I use this table to make my URLs friendly, but many people know that the% sign is not a valid URL character, so my browser receives a bad request. I have many records in this table (1700 or so) and need a query to capture all those that have% in the keyword.
So, I tried doing this in MySQL and came up with this query:
SELECT * FROM v3_url_alias WHERE keyword LIKE '%%%';
This returned all my keywords since% is used as a wildcard.
My question is, how to get every keyword containing the% character with SQL?
source share