Temporary Tables and Session Scope
A real table that exists only for your session. Learn CREATE TEMPORARY TABLE, its scope and lifetime, indexing it, and the dialect differences.
Tables, columns and schema structure.
7 notes tagged
A real table that exists only for your session. Learn CREATE TEMPORARY TABLE, its scope and lifetime, indexing it, and the dialect differences.
How to get from a description of a business to a set of tables: find the entities, give them attributes, connect them, and name everything consistentl...
The four constraints that guard a single table. What each one enforces, how NULL interacts with UNIQUE and CHECK, and why the database is the right pl...
ALTER changes a table that already holds data. Add and drop columns, change types, set defaults and manage constraints without losing rows.
CREATE defines the objects data lives in. Learn CREATE DATABASE, CREATE SCHEMA and CREATE TABLE, with column definitions and inline constraints.
Numeric, string, date and boolean types across the major dialects, and how to pick the type that stops bad data at the door.
Tables hold typed columns and unordered rows, schemas hold tables, and every value obeys the type its column declares.