Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Views and multiple parameters
Message
De
20/06/1997 16:19:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
17/06/1997 09:22:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00036190
Message ID:
00037219
Vues:
30
> > > Yes, I found that with the select(viewless) cursor that I generated, I > could not create more than one index tag, nor could I change the tag once > it was created, for the CDX file with the same temporary name as the > cursor (I got a "read only file" error). This causes me to use the "index > on whatever tag whatever of somefile" which file I have to erase when I'm > done. I don't think so - any index on a cursor (whatever the source and way of creating it) vanishes when the cursor is closed. Still, I didn't check this for VFP (I think it defaults to FP behaviour), but if it didn't work I would have found tons of dead .cdx'es on my disk by now. I simply forget to delete them - if VFP closes cursors, their indexes vanish. > With a view cursor I can create multiple indexes using the temp cdx > filename, and it just goes away when I'm done, I don't have to erase it > myself. So with these restrictions on select cursors, what is the > advantage of using a select statement over a view? Are selects faster? > Originally I was having troubles with parameters, but those problems have > been solved, or at least I hope they have! So what is the advantage? To be honest, I haven't tried views yet. If they are just stored SQL commands (something like saved queries) as I believe they are, then they create cursors all the same, and all of this applies.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform