Home All Groups Group Topic Archive Search About
Author
7 Jan 2006 1:53 PM
JR
Hi,

Can I use wildcards in a select command. My command is like this:
    SELECT ID FROM songs WHERE (Title LIKE in(?,?))
if I remove the 'like' or the 'in' it works. together it doesn't

of course without the in I need the correct names and with the like I add
the '%'
the database is access. the connection oledbconnection
thanks Jan

Author
7 Jan 2006 5:09 PM
William (Bill) Vaughn
Use *.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"JR" <XX***@XX.XX> wrote in message
news:7JPvf.90685$q97.5843087@phobos.telenet-ops.be...
> Hi,
>
> Can I use wildcards in a select command. My command is like this:
>    SELECT ID FROM songs WHERE (Title LIKE in(?,?))
> if I remove the 'like' or the 'in' it works. together it doesn't
>
> of course without the in I need the correct names and with the like I add
> the '%'
> the database is access. the connection oledbconnection
> thanks Jan
>
>
>

AddThis Social Bookmark Button