Question

I have an ACCESS table (called OS) with 3 columns - OS_NAME , VERSION (both text), PRICE (number)
I am trying to find all the names of all OS's with the char '1' in the version (e.g. version v11), but when I use this query:
SELECT OS_NAME FROM OS WHERE VERSION LIKE '%1%'
Im not getting any reasult, just a blank table.
I tried writing SELECT OS_NAME FROM OS WHERE VERSION LIKE 'v11'
and all was OK and I got the right row...
So, is there a problem with my '%'?
I thought they should give me all string containing '1'

Était-ce utile?

La solution

In ACCESS you should use * instead of % :

 SELECT OS_NAME FROM OS WHERE VERSION LIKE '*1*' 
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top