Pergunta

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?

Foi útil?

Solução

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top