Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table or View?
Message
De
03/07/2000 15:23:57
 
 
À
30/06/2000 14:39:07
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00386724
Message ID:
00387838
Vues:
22
Views don't have indexes (the "order by" is not the same as an index). You'll have to build one programatically in this case:

>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>CLOSE DATABASES
>OPEN DATABASE ('c:\diamondaccounti\inventory')
>
>if !used('intrancust')
>use intrancust
>else
>select ('intrancust')
>endif

INDEX ON stocknum TAG STOCKNUM

>
>SEEK Thisform.Combo4.value
>
>
>IF FOUND( )
> Thisform.CHARGEPERKARAT1.VALUE = chgperkt
> Thisform.MEASUREMENTS1.VALUE = measure
> Thisform.Combo3.VALUE = cut
> Thisform.Combo2.VALUE = colors..............
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This can be a real bottleneck if you have a view with a large result set.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform