postgresql not creating table only fields code example
Example 1: postgresql add column with constraint
ALTER TABLE customers
ADD COLUMN contact_name VARCHAR NOT NULL;
Example 2: postgresql create table as select
CREATE TABLE films_recent AS
SELECT * FROM films WHERE date_prod >= '2002-01-01';