Update primary key value [message #53242] |
Fri, 06 September 2002 06:03 |
NP
Messages: 1 Registered: September 2002
|
Junior Member |
|
|
Hi,
Which is better to change the primary key?
- delete current row, and insert a new row
- update the primary key value of the row inserted initially.
The second one seems to be more efficient. My question is whether it can any side effects. We use database replication provided by Oracle. Will this be affected in any way. Also, this is a Java application and we would like to keep the application vendor independent as much as possible. Do all databases allow update of the primary key? is this a SQL standard?
Thank you.
|
|
|
|