It is not possible to write whole example for you.
Please first fetch the tables name based on the database types.
Once fetched, store it either in file or excel or csv and incrementally load it using programming language like python, pearl or shell script to add column name to your command automatically.
You can add that into command and let it run for night and fetch the results in the morning.
Dezyre Tech Support