I am familiar with this type of request:
select * from tableA where foo like '%bar%'
But today, I come across three related percent signs in some outdated code, for example:
select * from tableA where foo like '%%%'
This query works on both mssql and oracle when foo has a string type (varchar, etc.), but it fails when foo is numeric.
Any idea what that means?
EDIT: sorry for the typo in the original question, the query uses the LIKE operator.
source
share