Skip to Content
Custom Search

Drop Primary Key on DB2 Table

 

 
 
 
 
 
 
 
 
 
 
 
 
Drop Primary Key on DB2 Table
 
 
 
How to drop an existing primary Key on a table?
 
You will need to use the ALTER command to delete the primary 
key from the table. The following is an example of such query.
 
 
ALTER TABLE Table_Name DROP PRIMARY KEY;
 
Where Table_Name is the name of table on which you want 
to delete the primary key.
; ; ; ;

Comments

Post new comment

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 18 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 0 users and 19 guests online.
Dr. Radut | page