Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to execute more than 1 update with SQLEXE
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to execute more than 1 update with SQLEXE
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01522041
Message ID:
01522041
Views:
123
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
Next
Reply
Map
View

Click here to load this message in the networking platform