Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Produce a random UUID using `UUID()` (MySQL/MariaDB), `NEWID()` (SQL Server), `gen_random_uuid()` (PostgreSQL), or a `randomblob`-based expression (SQLite).
Define an identity or auto-increment column so new rows receive numeric IDs without the insert supplying them.