Postgresql – How to use DEFAULT when inserting rows into postgres sql database
Consider that I have a table t1 in my postgres database like so: CREATE TABLE t1 ( id SERIAL PRIMARY KEY, col_2 TEXT DEFAULT "foo", col_3 TEXT NOT NULL DEFAULT "bar", ... col_X INTEGER NOT NULL DEFAULT 42 ); And…