Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top