Computer Science, asked by gospel42, 1 year ago

what is the need for defining a primary key for a table​

Answers

Answered by PoojaBurra
1

Its a field in any table which uniquely searches individual records in a database.  

Primary keys should contain unique values.  

Primary key column can't have NULL values.  

Table have only one primary key which could consists of single/multiple fields.

Syntax of Primary Key is:

              ALTER TABLE <Table Name>

              ADD PRIMARY Key <Column Name>


gospel42: thanks dear
Similar questions