Check out example codes for "add primary key constraint in oracle". It will help you in understanding the concepts better.

Code Example 1

-- Adding Using alter
ALTER TABLE table_name
ADD CONSTRAINT constraint_name PRIMARY KEY (column1, column2, ... column_n);

Code Example 2

-- Dropping Using alter
ALTER TABLE table_name
DROP CONSTRAINT constraint_name;

Learn ReactJs, React Native from akashmittal.com