I have a database with a lot of tables, But all of
them have same column setup, Looks like this:
table1.ip table2.ip table3.ip....
every table have an lot of rows.
my questions is , How can I count them by group?
for 1 table, I know I can use
select ip,count(ip) from table1 group by ip;
But how can I count all ip in table1,table2....And group
them?
I know I can use an temp table to do this, But it cost
so many time....
Thanks.