Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Primary Keys | Populating a Database
Introduction to SQL
course content

Kurssisisältö

Introduction to SQL

Introduction to SQL

1. Getting Started
3. Sorting Data
4. Populating a Database
5. Updating & Deleting Data

book
Primary Keys

A primary key is a column in a table which:

  1. Has a unique value for each row (no duplicate values);
  2. Cannot contain an empty / null value for any row.

A column can be marked as a primary key using the PRIMARY KEY keyword, inside the CREATE statement while creating the respective table.

Demonstration:

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 4. Luku 8
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt