Frage

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?

War es hilfreich?

Lösung

Try double-quotes and * for wildcards. You are using Oracle syntax instead of Access syntax.

Andere Tipps

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 %.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top