Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL statement stored in string variable
Message
De
12/08/1999 11:58:47
 
 
À
12/08/1999 10:14:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00252950
Message ID:
00253040
Vues:
22
>I have a string variable that contains a SQL statement I want to run. How can I 'execute' this variable so the program recognizes the query and runs it?

You can macro-expand it; for example:
cSQLSelect = 'SELECT * FROM MyTable INTO CURSOR MyData WHERE MyField = cSomeValue ORDER BY SomeField'
&cSQLSelect
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform