generate merge out of a select on multiple table ?

I’d like to know if its possible to generate a merge over two or more table, automatically out of a select ?

The reason is for some changes in the data, it is much more convenient to do it directly, and then I’d like to generate a script, to update the data on production DB…