Subject | Re: Fw: [IBO] Searching for a string into a string |
---|---|
Author | Lucas Franzen |
Post date | 2002-09-13T13:14:19Z |
Tiago Teixeira Barrionuevo schrieb:
In case of searching with LIKE '%STRe%'you won't find any entry like
"Street", "STREET", etc.
You would have got to do an UPPER compare again (WHERE UPPER (FIELD)
LIKE '%STRE%'.
Give it a try and you'll find out that it is much slower than using
containing (which is very fast even when searching within text BLOBS).
Luc.
>no, you can't since LIKE *IS* case sensitive.
> Then you can use LIKE:
>
> WHERE MyStringField LIKE '%stre%'
>
> or
>
> WHERE MyStringField LIKE '%STRe%'
In case of searching with LIKE '%STRe%'you won't find any entry like
"Street", "STREET", etc.
You would have got to do an UPPER compare again (WHERE UPPER (FIELD)
LIKE '%STRE%'.
Give it a try and you'll find out that it is much slower than using
containing (which is very fast even when searching within text BLOBS).
Luc.