Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xbase commands Vrs Sql commands
Message
From
09/05/2005 09:35:28
 
 
To
08/05/2005 06:16:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01011885
Message ID:
01012146
Views:
27
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform