How to insert a series of keys into another column
I just disappeared. I have a lot of relationships with three tables. Lets call them A, B, and C. C stores the primary keys of the other two tables.
Now I would like to insert all primary keys from table A and let 1 primary key from B into table C. I just don't get it. All I came up with was some stored procedure that takes the cursor through all the primary keys of A and inserts them from 1 to C. Guess there is a much easier way to do this.
Any help is appreciated!
0
a source to share