Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Without using cursor can we do mutiple update

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
kalaikala

New User


Joined: 21 Jul 2007
Posts: 27
Location: Chennai

PostPosted: Fri Mar 13, 2009 9:58 am    Post subject: Without using cursor can we do mutiple update
Reply with quote

Hi,

In COBOL-DB2, Without using cursor can we do mutiple update (like mutiple insert)
Back to top
View user's profile Send private message

rajesh_mbt

New User


Joined: 27 Mar 2006
Posts: 95
Location: India

PostPosted: Fri Mar 13, 2009 11:21 am    Post subject:
Reply with quote

Hi Kalai
Ofcourse, you can do multiple update like insert at a time. You need cursor only to select multiple rows from table(s). If you don't mention key field/primary key field in the where condition while updating the table that will update multiple rows icon_exclaim.gif
There is no cursor require for this. Hope, am correct if my understanding is right :-)
Back to top
View user's profile Send private message
kalaikala

New User


Joined: 21 Jul 2007
Posts: 27
Location: Chennai

PostPosted: Fri Mar 13, 2009 2:12 pm    Post subject:
Reply with quote

Thats ok. But i want to update for particular row (with key fields in where clause).

There is an insert statement is there in DB2, we can insert N number of rows. likewise is there anything like that?.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Fri Mar 13, 2009 5:38 pm    Post subject:
Reply with quote

You can update N number of rows if the where clause returns N number of rows. If you are asking whether you can specify an array (like multi-insert), then sorry, There's no such method.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need Guidance regarding UPDATE query Poha Eater DB2 3 Mon Feb 12, 2018 11:35 pm
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Getting Mutiple input from Panels vidyaa CLIST & REXX 12 Mon Aug 14, 2017 1:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us