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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -