Check out example codes for "postgresql add column with constraint". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE customers 
ADD COLUMN contact_name VARCHAR NOT NULL;

Learn ReactJs, React Native from akashmittal.com