database - Copying a complex data structure -


in our postgres database, have structure of

class 1-* assignments 1-* questions 1-* alternatives

previously assignments reused multiple classes, meaning several classes point same assignment id , fine world.

now, need make change in system requires assignments unique each class. means need replicate assignments several copies can make them unique each class.

so, generate unique assignments each class , each of them have own questions , alternatives.

what's efficient way replicate without having build huge recursive code?


Comments

Popular posts from this blog

php - How can an email be returned from Stripe Checkout? -

SQL php on different pages to Insert (mysqli) -

linked list - Get the index of the Node in a LinkedList which contains the given value in java -