- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Updating Foreign Keys
Operating System - HP-UX
1754238
Members
2981
Online
108812
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2007 12:11 AM
тАО02-05-2007 12:11 AM
Updating Foreign Keys
Hi,
I need to update a PRIMARY KEY but there is FOREIGN KEYS in other tables. I dont know how to do this.
Can i disable the FOREIGN KEYS Constraints ? Or there are another solution?
Please need help.
Thanks in advance
Best Regards
Pinki
I need to update a PRIMARY KEY but there is FOREIGN KEYS in other tables. I dont know how to do this.
Can i disable the FOREIGN KEYS Constraints ? Or there are another solution?
Please need help.
Thanks in advance
Best Regards
Pinki
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2007 12:27 AM
тАО02-05-2007 12:27 AM
Re: Updating Foreign Keys
Pinki,
Primary keys should not be updated !
The totally correct way would be to remove the record with the primary key and the connected records. Then re-create the record with new key and the connected records.
The not so correct way is to temporarily remove the foreign key constraint, change the record and then re-enable constraint.
Please check your database referential consistency afterwards !
Primary keys should not be updated !
The totally correct way would be to remove the record with the primary key and the connected records. Then re-create the record with new key and the connected records.
The not so correct way is to temporarily remove the foreign key constraint, change the record and then re-enable constraint.
Please check your database referential consistency afterwards !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2007 12:28 AM
тАО02-05-2007 12:28 AM
Re: Updating Foreign Keys
Hey
Check this question:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:914629004506
perhaps you find other tipps at http://asktom.oracle.com
Regards
Check this question:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:914629004506
perhaps you find other tipps at http://asktom.oracle.com
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP