Hi All,
I want to select rows from dynamic created tables i.e we have tables like web_analytics_mm_yy(ex: web_analytics_06_13, web_analytics_05_13, web_analytics_04_13 and so on)
web_analytics -> table name
mm_yy -> month_year.
I know this can be acheived in PHP by using
for loop {
// CONSTRUCTING SQL STATEMENT USING
// UNION ALL
}
but is there any thing that can be done using mysql Query only?
and i want to know what is the best method to fetch data from multiple tables which are created dynamic.
Thx ppl