Optimize some composite-key tables.
Section: Create tables and constraints
Create a WITHOUT ROWID table
sql
sql
CREATE TABLE locale_strings (
locale TEXT NOT NULL,
key TEXT NOT NULL,
value TEXT NOT NULL,
PRIMARY KEY (locale, key)
) WITHOUT ROWID;Explanation
Useful when the natural primary key is composite and rowid storage adds little value.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Create tables and constraints
Create a basic table
Define a rowid-backed table with primary key and timestamps.
Create a generated column
Materialize or compute a derived value from another column.