Primary keys - the basics
5. Primary keys - duplicated values
Single-column primary keys
Multicolumn primary keys
Auto-increment columns and sequences
Revision

Instruction

Perfect. And what will happen if we try to enter a row with the same id as an existing row in the table? Let's try that.

Exercise

Try to add a new movie with an id between 1 and 10 and see what happens. When you're done, press the button to continue.

Console

Code editor

Result

TableConsole