Expert |
|
Joined: Tue Dec 28, 2004 7:02 am Posts: 573 Location: Toulouse, France
|
A primary-key should never change. This problem has already been discussed here. Delete the line and create a new one with the right id.
Moreover, think about the risks of updating a key (composite or not) : every foreign keys pointing to it would be out of order. That's why it's very recommended to never modify a primary-key (I would say the problem is even more important with composite ones).
_________________ Baptiste
PS : please don't forget to give credits below if you found this answer useful :)
|
|