Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET DELETED effects SELECT-SQL INTO CURSOR?
Message
From
12/06/1999 08:33:26
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00229044
Message ID:
00229131
Views:
20
>The problem is if VFP can set a filter on the table you are selecting from, it will do so. Therefore, a temp file is not created. What you need to include in the Select command is a NOFILTER clause at the end of the command. This will create the temp file you will need. The code snippet is like:
>SELECT * FROM mytable INTO CURSOR TempCur NOFILTER
>use dbf("TempCur") again in 0 alias MyNewCursor
>index on somefield tag somename
>Using the dbf again is what makes the cursor read-write.

Boy is that arcane! Does this have to do with the optimzer? Is there someplace this behavior is specified? Is this a VFP idiosyncrasy or a standard "SQL" feature? Amazing!

Thanks for your help. I doubt if I'd have ever figured that one out by experimentation.

I find MS's specification of the use of cursors sketchy at best yet they seem like really useful things. Know of any good, comprehensive discussion of the use of cursors with VFP?
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform