Try double-quotes and * for wildcards. You are using Oracle syntax instead of Access syntax.
SQL LIKE doesn't find obvious matches [closed]
Domanda
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?
Soluzione
Altri suggerimenti
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 %.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow