I am using MySQL to capture snapshots of my data everyday, so I need to create multiple tables with the same columns.
my_foobar_table_20170125
my_foobar_table_20170126
my_foobar_table_20170127
What's the easiest way to create the tables? Would it be with a table schema file? Or, with a create table query?
I am leaning toward using a table schema file if that is possible. As it seems cleaner than a sql query to create the table.
I have googled around, and surprisingly there is no clear answer on this. In fact, it's not even obvious what exactly is a "table schema file", or how to generate this from mysql workbench, or use the schema file to create the table.