ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Passing Update and Commit in a Single statement

Post new topic  Reply to topic
 Passing Update and Commit in a Single statement « View previous topic :: View next topic » 
Author Message
vdharanikota
PostPosted: Tue Dec 26, 2017 11:32 am    Post subject: Passing Update and Commit in a Single statement Reply with quote

Novice

Joined: 07 Jul 2014
Posts: 18

Hi Everyone,
I am using IIB10 and Oracle DB.

I have a requirement to update and commit the transaction in a single statement.

I have used individual statements as below :
PASSTHRU('UPDATE Table1 SET Col1= ? where Col2= ? and Col3= ?','a','b','c');
PASSTHRU('COMMIT');

The above statements are working good.

Is there any chance that we can combine the above two statements into one and pass at singe shot....?
Back to top
View user's profile Send private message
mpong
PostPosted: Tue Dec 26, 2017 12:46 pm    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

I don't think you can achieve in a single ESQL statement unless you write COMMIT. Probably you can try out java SQL Parser to do the commit using JCN.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Passing Update and Commit in a Single statement
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.