Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex index is this possible?
Message
De
11/06/2013 08:48:16
 
 
À
11/06/2013 08:37:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01575993
Message ID:
01576015
Vues:
45
>Not sure why you want that. It will make Rushmore more difficult as every query will need to use the same method to optimize it. I agree with others that ORDER BY in the SELECT clause would be better.
>
>But, if you need it...
>
>INDEX ON DupKey + ("ZZZZZZZZZZZZZ" - Codex) + CopyNo TAG Docky


This solution will not work for several reasons, not the least of which is the minus sign is a concatenation operator in FoxPro. The result would be "ZZZZZZZZZZZother field".

Best regards,
Rick C. Hodgin


>
>Note the length of "ZZZZZZZZZZZZZ" is the same as the length of the Codex field.
>
>
>
>>I want to index a file on descending order of fields 1 and 2 but within that on ascending oder of fields 3 - how can I do this?
>>
>>I have tried this but it doesn't work
>>
>>index on dupkey+codex DESCENDING, COPYNO ASCENDING TAG docky
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform