Add Primary Key To Existing Table Oracle Code Example


Example 1: add primary key constraint in oracle

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

Example 2: drop primary key oracle

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

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable