Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Differencing an upper case from a lower case in a query
Message
 
 
To
27/11/2002 12:10:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00727620
Message ID:
00727638
Views:
7
>m.texto="%"+UPPER(alltrim(thisform.pageframe1.page1.pageframe1.page5.text1.value))+"%"
>if empty(m.texto)
> =messagebox("please type something")
> else
> select llamadas.detalle as problema, llamadas.solucion as detalle;
> from llamadas;
> where UPPER(llamadas.detalle) like m.texto ;
> and llamadas.bdc = .t. ;
> into cursor bcproblemas3
> report form bcinforme.frx preview
>endif
>
>
>Just understand that the query will take a little longer(*) unless you have and index on UPPER(detalle)
>
>(*) shouldn't be noticable (unless you have an index on detalle)

The original query and new one aren't optimazable because of the '%' at the beginning of m.texto. So creating index on llamadas.detalle or UPPER(llamadas.detalle) wouldn't help.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform