I have 5 databases(or schemas) which have more than 100 tables in MySQL and now I need to create new database which have tables like older tables. New tables' names are in this format
"OldDatabaseName"_"OldTableName"_History
and their columns are almost same, just I need to add 2 new columns like START and END timestamps for every table.
There won't be any foreign keys in new tables, and also not any auto increment column, just ID and START columns will be unique key.
So, What kind of SQL do I need to use for this purpose?