We break down the basic “mental model” of relational databases: tables, rows, columns, and the schema as a data contract. We learn to see the foundation of CRUD operations in SQL (
INSERT,
SELECT,
UPDATE,
DELETE), to understand integrity constraints (
PRIMARY KEY,
NOT NULL,
UNIQUE,
FOREIGN KEY), and we also build a correct habit: fixed query + parameters (
?) instead of string concatenation. All examples are shown as Kotlin strings with
trimIndent() for future work with
JDBC and
Exposed.