SaintJames
Programmer
How do I add a composite primary key to a contraints. in Oracle 10
This isthe SQL that I have but it returns an error,
SQL=ALTER TABLE [Table_Name] ADD CONSTRAINT [Constraint_Name] PRIMARY KEY (field1, field2);
Then I get this error:ORA-00955: name is already used by an existing object
But the contraint is non-existant. If I add only one field the constraint get added.
Help!
Oracle Newby
This isthe SQL that I have but it returns an error,
SQL=ALTER TABLE [Table_Name] ADD CONSTRAINT [Constraint_Name] PRIMARY KEY (field1, field2);
Then I get this error:ORA-00955: name is already used by an existing object
But the contraint is non-existant. If I add only one field the constraint get added.
Help!
Oracle Newby