Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Faster Way To copy the Table
Message
 
À
09/02/2001 05:22:43
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00474348
Message ID:
00474359
Vues:
19
You have many options. You can use SCAN and INSERT INTO instead of the DO WHILE loop. Even faster would be APPEND FROM...

>I use the SQL statment to select large amount of data into a cursor.
>Then I need to put those data into another Table.
>What is the most faster way ?
>My syntax is as the following :-
>----------------------------------------------
>select number AS No, amount As Amt ... From Invoice INTO CURSOR InvTable
>
>SELECT InvTable
>GO TOP
>DO WHILE .NOT. EOF()
> SELECT InvTable
> SCATTER MEMVAR MEMO
> SELECT "Transaction"
> APPEND BLANK IN "Transaction"
> GATHER MEMVAR MEMO
> SELECT InvTable
> SKIP
>ENDDO
>
>I Think That If i loop each record, It is quit time-consuming.
>Any other faster way ??
>
>Thanks.
>From Agnes
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform