JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Primary keys

Last modified: 21 March 2024

A primary key contains unique values and identifies each row in a table.

For some databases, the primary key cannot contain NULL values. A table can have only one primary key, and this primary key can consist of single or multiple columns. When a primary key consists of multiple columns, the data from these columns is used to determine whether a row is unique.

Primary keys can be seen in the Database tool window. You can see a reference on node and object icons in the Data sources and their elements chapter of Database window topic.

For the table column icons, refer to Possible icon combinations for columns.