I'm using mysql version 5.7
, it has around 2000 tables, each of tables has columns gmt_modified
as mandatory.
So now i want to build a report to see how much data in each time range, eg: 3-6-9-12 months.
what i'm about to do is base on gmt_modified
(timestamp) to do that.
I just wonder mysql support the way to build that report or not
or anybody know how can we select gmt_modified
of all tables in a schema?
We can list columns in all tables by this way:
select *
from information_schema.columns
where table_schema = 'your_DB_name'
and table_name = 'Your_tablename'
but how to select data of column as well?
Thanks