Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to execute more than 1 update with SQLEXE
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to execute more than 1 update with SQLEXE
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01522041
Message ID:
01522041
Vues:
122
Hi,

How do you string two or more UPDATE commands to be executed with SQLEXEC()? I tried separating them with ";" but I get error message. Here is my test string:
cCommand = "update MyTable set Field1 = '111' where Field1 = '222'; update MyTable set Field2 = '111' where Field2= '222'"
SQLEXEC( nHandle, cCommand )
What is wrong with the above syntax? TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform