Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating cursor from table structure
Message
From
26/05/2003 20:30:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/05/2003 06:07:14
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00792796
Message ID:
00792909
Views:
17
>I wish to create a temporary empty cursor structure based on an existing table using SELECT * FROM MyTable INTO CURSOR MyCursor READWRITE WHERE .F.. Is the WHERE expression evaluated for every record? MyTable.dbf is very large (over 2 million records) and I am concerned this may affect performance.
>
>Any help would be appreciated.
>
>Alan

COPY STRUCTURE is specifically designed to copy only the structure, no records.

I think a COPY STRUCTURE should be much faster, in this case. But you will have to test whether there actually is a speed difference.

I believe COPY STRUCTURE only works for tables, so you would have to copy into a table first, and then to a cursor, in a second step.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform