Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Must tables be used before call a SQL statement?
Message
 
 
À
04/06/2007 14:42:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01230337
Message ID:
01230344
Vues:
21
>I have always thought that the (free) tables used in a SQL Select statement must already be opened before the SQL is executed.
>
>The other day, I entered a Select.. statement from the command window when no tables were opened, and the darned thing worked!!
>
>So which way is it? If the free tables are in the search path, is it ok to call a SQL select in the load() of a form without first "use"ing the tables?

It will work either way if FoxPro can find tables on the path. However, if it cannot find them, you will get an error on USE command and Open Table dialog on SELECT. In VFP9 SET TABLEPROMPT command can supress the dialog.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform