Try double-quotes and * for wildcards. You are using Oracle syntax instead of Access syntax.
SQL LIKE doesn't find obvious matches [closed]
質問
I'm writing the following SQL query:
SELECT *
FROM OS
WHERE OS.VERSION LIKE '%1%';
In my table there are rows with char 1 in it. However, it returns an empty result. I changed a little bit the LIKE clause to different values, but it still doesn't work.
What can I do to fix that?
解決
他のヒント
LIKE operation can't be used with columns of integer type. I assume that OS.Version is of integer type?
Edit1: If you are referring to MS Access then you have to do the LIKE with stars (*) instead of %.
所属していません StackOverflow