IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

updating a primary key


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varun_sharma

New User


Joined: 08 Jun 2005
Posts: 19
Location: new delhi

PostPosted: Tue Jun 20, 2006 2:25 pm
Reply with quote

hi

can we update a primary key in a db2 table. im quite sure we can't do this but just wanted to double check with you guys. we can use delete and then insert to change a primary key, but can update be used or some other way?

cheers
varun
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Jun 20, 2006 3:49 pm
Reply with quote

No we can't use update to change primary key The only way is to delete arecord & then insert a record with change ( updated primary key value).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Cobol prog to put an indicator on the... JCL & VSAM 1
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts Updating endevor JCLs CA Products 5
Search our Forums:

Back to Top