I want to know difference between these two key.
When the Unique key with not null constrain in terms of how they are stored in database
not null
and wh
Primary key cannot be null, there can be only one per table.
Unique keys can contain nulls, and you can have more than one per table.