Sometimes we need to add ulterior constraints to the table we define. The ALTER TABLE statement enables us to do this. There are several types of constraints we can add. If we want to ensure that all ...
INNER JOIN pg_catalog.pg_class rel ON rel.oid = con.conrelid INNER JOIN pg_catalog.pg_namespace nsp ON nsp.oid = connamespace ALTER TABLE products_ref_3 ADD CONSTRAINT products_ref_pkey PRIMARY ...