Just copy the contents of the file merge_generator to your sql editor. Then replace the 2 variables with the target schema and table name. Run the whole thing. The output contains the generated merge ...
This system stored procedure takes a table name as a parameter and generates a MERGE statement containing all the table data. This is useful if you need to migrate static data between databases, eg.