Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I cannot seem to do a SQL Select with a where clause
Message
De
10/12/1999 16:41:21
 
 
À
10/12/1999 16:06:53
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00301982
Message ID:
00302011
Vues:
33
>=SQLEexec(nHandle, "select ContHist.RecID from ContHist where INLIST(ContHist.ResultCode,'EXP','BXP')", "ThisCursor")
>
>What is SQLEExec? is this a VFP6 thing? ODBC thing?

SQLExec() is the SQL Passthrough command that sends a query or operation to a backend for execution. In this case, it won't work because the INLIST() function being passed is not a part o the backend's SQL implementation - it should be converted to a standard TransAct SQL syntax IN clause.

>
>I'm wondering how it's different from SELECT - SQL...

It's a way to have VFP ask another SQL engine to process a query - VFP forms an operation to be performed at the backend and passes the request to the backend server.
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