Introduction
UNIQUE
NOT NULL
CHECK
DEFAULT
27. DEFAULT - Inserting data
Summary

Instruction

Okay. Now, let's take a closer look at how rows are added.

Exercise

Insert a new game into the table card_game and specify only the following information: name 'Citadels', genre 'historical'. What do you think will happen? Take a look at the resulting row.

Stuck? Here's a hint!

INSERT INTO card_game (name, genre) VALUES ('Citadels', 'historical');

Console

Code editor

Result

TableConsole