Jump to content

Primary Key and Unique key difference


suresh_kamrushi

Recommended Posts

From my understanding of it, primary key is basically the same only that it is the absolute key (identifying rows in the table). Unique key would mean that each key has to be different or it would result in an error. I am not super positive though, I as I have never needed anything besides the primary key.

 

I suppose it would be useful if you want a table with an id that could be linked to another table id, but only one time.

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.