Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does the table used in SQL SELECT close?
Message
De
20/12/2001 12:51:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/12/2001 11:57:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00596837
Message ID:
00596876
Vues:
23
>When using a SQL statement, does the database and/or the table need to be explicitly opened first (USE myTable, OPEN myDatabase ?), or does the SQL SELECT statement automatically opens up myTable?
>Another question:
>After a SQL SELECT statement, when does the table close?
>Example: SELECT * FROM myTable INTO CURSOR xTemp
>myTable automatically opens?
>When does myTable close: do I need to specifically close it:
>SELECT myTable
>USE
>... what is a good practice: after SQL SELECT statement, manually close myTable & use xTemp cursor??

Tables are opened, but not closed, automatically.

If you have a form with a private datasession (the recommended, but not the default, setting!), there is no need to close tables explicitly.

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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform