Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it good practice to create temporary dbfs then ....
Message
De
05/01/2006 06:49:07
 
 
À
04/01/2006 13:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01082941
Message ID:
01083465
Vues:
14
Another thing to watch for if selecting into a cursor is if some of your source field names are greater than 10 chars long:

1) the cursor's field will be truncated to 10 chars
2) if there are 2 fields with the same 1st 10 chars you'll get an error

>Pretty much the only times I would use a table instead of a cursor is if:
>
>1) You need to keep the results of this query after the program closes (or datasession is closed)
>
>or
>
>2) Since "Select [fields] from [tables] into cursor [cursorName]" most often results in a read only set of records, I would use "into table [tableName]" instead if I intend to modify the data in any way post-select.
>
>In my experience, I'm just using cursors a VERY high percentage of the time rather than temporary tables.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform