sql create table sql code example Example: create table CREATE TABLE fact ( id SERIAL PRIMARY KEY NOT NULL, type VARCHAR(255), text TEXT );