Good morning,
i need to execute more than one Update or Insert commands,
using an OdacQuery Object.
If I make:
odacQuery.Add('Update....');
odacQuery.Execute;
with only a single command, it works,
but if i add more than one command:
odacQuery.Add('Update1....');
odacQuery.Add('Update2....');
odacQuery.Add('Update3....');
odacQuery.Execute;
it doesn't work at all.
Have i to add in a certain way every
command text or am i doing something wrong?
Thanks, Fabrizio (Italy)
Add Strings to odacQuery
-
AlexandreECAD
- Posts: 40
- Joined: Wed 30 Nov 2005 15:55
- Location: Brazil
Try this
odacQuery.Append('begin');
odacQuery.Append('Update1.... ;');
odacQuery.Append('Update2.... ;');
odacQuery.Append('Update3.... ;');
odacQuery.Append('end;');
odacQuery.Execute;
odacQuery.Append('Update1.... ;');
odacQuery.Append('Update2.... ;');
odacQuery.Append('Update3.... ;');
odacQuery.Append('end;');
odacQuery.Execute;