Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL result different from VFP8
Message
De
22/12/2004 12:25:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00971482
Message ID:
00971485
Vues:
26
>I have an SQL command:
>
>SELECT IDNUM FROM CONTDB WHERE UPPER(ALLTRIM(ln)) = 'VOSS'
>
>In VFP8 22 recs returned in .78 secs
>In VFP9 243 recs return in 23.47 secs
>
>The extra records have a blank LN
>

use SYS(3054,11) for check OPTIMIZATION

Check SET ANSI ON for

>
>COUNT FOR UPPER(ALLTRIM(ln)) = 'VOSS' shows 22 in both 8&9
>
>I have an index on:
>
>UPPER(ALLTRIM(ln))
>
>Any idea?

try
COUNT NOOPTIMIZE FOR UPPER(ALLTRIM(ln)) = 'VOSS'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform