create log table in mysql with structure from select code example
Example: how to create a table structure from another table in mysql
CREATE TABLE new_tbl LIKE orig_tbl; //(creates an empty table only definition is
same.)