I created a table with a primary key. I would like to alter a primary key.
I thought using Alter Table command is the solution, but not successful.
ALTER TABLE "tablename" ALTER PRIMARY KEY (col1,col2);
Could you please help me how to alter primary key using SQL statement?
You can add primary key constraint to a column but cannot alter an existing one.