Primary key constraints does not allow to enter duplicate as well as null values. It always have unique data and it enforces the entity integrity of the table.Primary key doest not allow more than one coloumn in a table.
E_ID | E_NAME | E_SALARY |
---|---|---|
201 | Robert | 37000 |
202 | Michael | 73500 |
203 | Foster | 45000 |
204 | Luke | 80000 |
ALTER TABLE EMPLOYEE ADD primary key (E_Id);