Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xbase commands Vrs Sql commands
Message
De
09/05/2005 09:35:28
 
 
À
08/05/2005 06:16:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Divers
Thread ID:
01011885
Message ID:
01012146
Vues:
28
>>I would imagine this:
>>SELECT * FROM mytable INTO CURSOR mycursor
>
>>would be faster than:
>
>>create cursor mycursor (field definitions)
>>select mytable
>>scan
>> scatter memvar memo
>> insert into myCursor from memvar
>>endscan
>
>SELECT * FROM mytable INTO CURSOR mycursor
>append from ()
>
>might be a better comparison...
>
>regds
>
>thomas

Hi Thomas,

I see your point (I never think of using APPEND), maybe I should have done it like this:

SELECT * FROM mytable INTO CURSOR mycursor NOFILTER

create cursor mycursor (field definitions)
APPEND FROM mytable

Anyhow, I would still prefer to do it using SQL as the other way I would need to know the table definition and if the table structure changes it would break my code. But then again I could get around that problem by creating an array of the table structure and then creating the cursor from the array.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform