postgresql insert column
snippet in sql

postgresql add column with constraint

user8244

ALTER TABLE customers 
ADD COLUMN contact_name VARCHAR NOT NULL;

postgres how to add field created at

user1018

CREATE TABLE my_table
(
	id serial NOT NULL,
    user_name text,
	created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP //here
)

postgresql insert column

user6190

ALTER TABLE table_name
ADD COLUMN new_column_name data_type constraint;