I currently developing a web based application for a client. the requirement given that I should make a function that allows them to update clientID(PK). I’m planning on using gridview to make it easier. However, I dont really know how to make the primary key field can be updated.
in my client table i have: clientID(PK), clientName, clientAddress etc.
If anyone can tell me how to do it i would really appreciate it. Thanks in advance.
A primary key is something you don’t want to update, as it will break foreign key references. If the client needs an ID that needs to be changed it will just have to be another field in your table and not the primary key.