I need to find %
in a column. I tried the following
SELECT *
FROM <table>
WHERE <column> LIKE '%%%'
But, all rows are listed. How to find the rows only with % using LIKE
condition?
I need to find %
in a column. I tried the following
SELECT *
FROM <table>
WHERE <column> LIKE '%%%'
But, all rows are listed. How to find the rows only with % using LIKE
condition?
Try following format:
select *
FROM <table>
WHERE <column> LIKE '%/%%' ESCAPE '/'
You can also use %[%]%
in your like: Anand Answer
Try to use \ to escape the percentage. Try the following:
select * from table where column like '%\%%';