如何寫replication function(編號:7539)

Hello!
請問如何寫replication function.
將兩個相同data structure的database做replication
thanks!