Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert into mysql coding
Message
De
12/10/2009 08:03:17
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01428903
Message ID:
01428924
Vues:
39
Thanks Sergey
It took a long time to query a set of cursor from a huge table without index
SQLExec(lnHandle, "select * from detail where type=m.type and ref_no=m.ref_no",'temp'")
in order to speed up, how to create the index file and how to apply it ?



When you move to a client-server database, you should forget about row level access and start thinking in a set oriented (queries) access.

>I have a detail.dbf with 2 indexes
>ref_no char(10), type char(10), date date(8), account char(10), itemcode char(10)
>index on type+ref_no tag ref_no && type is bill type like INVOICE,CASHBILL,PURCHASE,CN,DN.....
>index on itemcode+account+dtos(date) tag itemcode descend
>
>use detail
>set order to ref_no
>seek m.type+m.ref_no
>do something..........
>
>set order to itemcode
>seek m.itemcode+m.account
>scatter all previous data and gather into temp cursor........
>
>how to create this table and indexes with mysql syntax ?
>how to play around with these index just like vpf table and index seek with mysql coding ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform