我想在搜索的同时能得出记录总,如:
select * from tb where ab=ba;
select count(*) from tb where ab=ba;
应该怎么样写在一起啊select count(*) as cnt,* from tb where ab=ba;   //这样写好象不行吧