I am familiar with this kind of query:
select * from tableA where foo like '%bar%'
But today I run into three adjacent percentage signs in some legacy code, like this:
select * from tableA where foo like '%%%'
This query seems to work, both on mssql and oracle, when foo is of string type (varchar, etc.) but it fails when foo is numeric.
Any idea what it means?
EDIT: sorry about the typo in original question, the query uses the LIKE operator.