|
-
Add a column to the Primary Key?
Due to a design flaw i want to add a column to the primary key:
alter table myTable modify primary key pk_myTable(old_column1, old_column2, new_column)
oracle doesnt accept it? how can i change the pk without removing it, all the FKs that reference it and recreating them all again?
-
-
There is no other way but to drop the existing PK and create a new one with the additional column.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
-
-
okay, here's another related question.. what tool do you guys use to make your tables structure? im talking about something like maybe what Microsoft Access is to Jet.. what is like that for oracle?
i cant believe that everyone really sits down with toad/equiv and types
create table blah
add constraint xyz
...
-
some people use a design program which generates the code for them
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|