![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Why not just insert the records and delete the old ones afterwards? |
#22
| |||
| |||
|
|
On Feb 14, 2:44 pm, Urs Metzger <u... (AT) ursmetzger (DOT) de> wrote: Why not just insert the records and delete the old ones afterwards? Thanks Urs. Some of the columns in the child tables I need to update are part of composite primary keys. In your first example, you update a foreign key value. For some reason, I thought it wasn't possible to update values that were part of a primary key. I didn't think it was allowed. Using JavaBeans, I've been told, it isn't allowed. Is it bad practice to update values that are part of a primary key? Was it ever not allowed in any version of Oracle? Not sure where I got that idea from, but your first example works fine. You can, and IIRC always could, change primary key (doesn't matter if |
#23
| |||
| |||
|
|
On Feb 14, 2:44 pm, Urs Metzger <u... (AT) ursmetzger (DOT) de> wrote: Why not just insert the records and delete the old ones afterwards? Thanks Urs. Some of the columns in the child tables I need to update are part of composite primary keys. In your first example, you update a foreign key value. For some reason, I thought it wasn't possible to update values that were part of a primary key. I didn't think it was allowed. Using JavaBeans, I've been told, it isn't allowed. Is it bad practice to update values that are part of a primary key? Was it ever not allowed in any version of Oracle? Not sure where I got that idea from, but your first example works fine. You can, and IIRC always could, change primary key (doesn't matter if |
#24
| |||
| |||
|
|
On Feb 14, 2:44 pm, Urs Metzger <u... (AT) ursmetzger (DOT) de> wrote: Why not just insert the records and delete the old ones afterwards? Thanks Urs. Some of the columns in the child tables I need to update are part of composite primary keys. In your first example, you update a foreign key value. For some reason, I thought it wasn't possible to update values that were part of a primary key. I didn't think it was allowed. Using JavaBeans, I've been told, it isn't allowed. Is it bad practice to update values that are part of a primary key? Was it ever not allowed in any version of Oracle? Not sure where I got that idea from, but your first example works fine. You can, and IIRC always could, change primary key (doesn't matter if |
#25
| |||
| |||
|
|
On Feb 14, 2:44 pm, Urs Metzger <u... (AT) ursmetzger (DOT) de> wrote: Why not just insert the records and delete the old ones afterwards? Thanks Urs. Some of the columns in the child tables I need to update are part of composite primary keys. In your first example, you update a foreign key value. For some reason, I thought it wasn't possible to update values that were part of a primary key. I didn't think it was allowed. Using JavaBeans, I've been told, it isn't allowed. Is it bad practice to update values that are part of a primary key? Was it ever not allowed in any version of Oracle? Not sure where I got that idea from, but your first example works fine. You can, and IIRC always could, change primary key (doesn't matter if |
![]() |
| Thread Tools | |
| Display Modes | |
| |