单个表: select count(id) from bbsrep1 where username = 'kaka'
7个表联合起来怎么查?
------解决方案--------------------
SQL code
--或者
select count(id) from
(
select id,username from bbsrep1
union all
select id,username from bbsrep2
union all
select id,username from bbsrep3
union all
...) a where username ='kaka'