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

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy