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

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -