Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which these 6 SQL select statements were just one (SQL g
Message
De
01/10/1999 21:59:58
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00271362
Message ID:
00271855
Vues:
17
>Hi Everyone,
>
>
>
>SET SOAPBOX ON
>
>I'm sorry, but I must object to this technique of the USE of the underlying cursor. This creates a very interesting cursor that is updatable, but is "missing" some other stuff under the hood. It has been known to cause some issues that are very difficult to track down.

Chuck,

I tend to use this technique, so I'm interested in what is missing under the hood, and what difficult-to-track issues have been run into. I have not run into any problems yet, but don't want to continue in unsafe techniques!





>
>It is MUCH more straightforward (for both Fox and the poor developer who has to look at this code after you) to use INTO TABLE instead. This creates just what you want: a result set that is placed into something that can be updated. When you're done with it, just erase it. If you're worried about duplicate file names, use SYS(2015) for a unique one.
>
>SET SOAPBOX OFF.
>
>Thank you. I feel better, now. <g>
>-Chuck
>
>>SELECT ... INTO CURSOR MyCursor
>>
>>SELECT 0
>>USE DBF([MyCursor]) AGAIN ALIAS MyTemporaryTable
>>
>>REPLACE ...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform