DB2 Alter Table Drop Primary Key

The RazorSQL alter table tool includes a Drop Primary Key option for dropping a primary key from a DB2 database table. The drop primary key function generates the appropriate alter table drop primary key SQL command for dropping the key from the table.

Listed below is an example of the SQL generated by the DB2 Alter Table Drop Primary Key function:

ALTER TABLE TESTUSER.EMPLOYEE DROP PRIMARY KEY

Below is a screen shot of the drop primary key function of the DB2 alter table tool.

DB2 Drop Primary Key