View previous topic :: View next topic
|
Author |
Message |
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
Is it possible to update DB2 Primary Key field in DB2 Cobol code with a unique value? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Primary keys can be changed, the new value must unique and be careful of foreign key constrains. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Ooops - looks like my bad . . .
d |
|
Back to top |
|
|
Jaggu.r
New User
Joined: 07 Aug 2012 Posts: 2 Location: India
|
|
|
|
Yes. We can do that.
We can DROP and ALTER primary key of a DB2 Table.
Try to create a cobol program with static sql with ALTER table query to do this but there is a constraint in using this. You need excess authorization for this. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Please re-read the topic. Your reply does not address the question asked.
It is best to ensure the question is understood before posting a reply. |
|
Back to top |
|
|
|