Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Differencing an upper case from a lower case in a query
Message
 
 
À
27/11/2002 12:10:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00727620
Message ID:
00727638
Vues:
8
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform