Question:What is the difference between primary key and unique? 

Answer The PRIMARY KEY attribute is used to guarantee uniqueness for a given row. No values residing in a column designated as a primary key are repeatable or nullable within that column whereas a column assigned the UNIQUE attribute will ensure that all values possess distinct values, excenpt that NULL values are repeatable. 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 944
What is the difference between primary key and unique?
Copyright © 2024. Powered by Intellect Software Ltd