Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

IN THE DATABASE THERE ARE ALOT OF KEYS WHAT ARE THEY AND WHAT THEY DO?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2014/08/25

Alternate key

Candidate key

Compound key

Primary key

Super key

Foreign key

Gayasuddin Mohammed
par Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

Basically they are the constraints you can attach on table level as well as field level of the table.

Unique key constraint is added to any field means the field should contain only unique value, it can allow users to insert the same value again for that field in another record.

Not Null constraint, if it is added to the field in table, than you should for sure had to provide value for that field, otherwise it throws an error being a non null field

 

Primary key is nothing but unique and not null, combination of above two. It is the main key one rdbms table should have for the performance of data retrieval or access for indexing purpose., but not must for every table.

 

foregin key- it is a relational key between two different tables for the purpose of normalisation to avoid redundancy of data.

etc..

More Questions Like This