What is a primary key?

What is a primary key?

The primary key is a column in a table that uniquely identifies each row in a database table. A primary key must contain a unique value. A column defined as primary key cannot have null values. Primary key can be defined when you create a table or later using ALTER TABLE statement.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.