Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql Command
Message
 
À
17/11/2006 23:30:29
Arjun Bagojikop
Dynamic Super Software
Sangli, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01170581
Message ID:
01170932
Vues:
12
>thanks Sergey
>
>i want to write one new sql statement
>vfp - statement
>select code from _tmp
>
>SQLExec(gnconnhandle,'select * from product where prcode in ( i want to use here vfp Statement','product')
>can it possible

You can't. You must prepare the list and SELECT beforehand.
SELECT .... && your "I want to use here vfp Statement"
lcList = []
SCAN
   lcList = lcList + IIF(EMPTY(lcList),[],[,]) + TRANSFORM(FieldName)
ENDSCAN

SQLExec(gnconnhandle,'select * from product where  prcode in ('+ lcList+ ')','product')
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform