Home All Groups Group Topic Archive Search About

Searching records with 'like'

Author
25 Nov 2005 2:11 PM
Pavils Jurjans
Hello,

I have this table with ID field and text field. For certain purposes, I need
to save this text field with case-sensitive collation. However, in some
cases I need to look up matches, ignoring the case, using like operator. How
can I override the default collation in this on-the-fly query?

Thanks,

Pavils

Author
25 Nov 2005 2:27 PM
MC
you can use COLLATE option i the select statement and specifiy what
collation you would like to use for the query. Alternatively, you could use
upper function.


MC


Show quote
"Pavils Jurjans" <pav***@mailbox.riga.lv> wrote in message
news:%23nWRJnc8FHA.1280@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> I have this table with ID field and text field. For certain purposes, I
> need to save this text field with case-sensitive collation. However, in
> some cases I need to look up matches, ignoring the case, using like
> operator. How can I override the default collation in this on-the-fly
> query?
>
> Thanks,
>
> Pavils
>

AddThis Social Bookmark Button