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