SELECT tb_inport.id,tb_inport.goodsid,tb_goods.goodsname,tb_goods.price,tb_inport.number,tb_inport.price,tb_inport.providerid,tb_provider.providername,tb_inport.inporttime,tb_inport.operateperson FROM tb_inport,tb_goods,tb_provider where tb_goods.id=tb_inport.goodsid and tb_provider.id=tb_inport.providerid
这个查询,要求出记录总数,用来分页请问怎么求?
这个查询,要求出记录总数,用来分页请问怎么求?
select count(*) from
(....原sql...) abc查出记录数
where tb_goods.id=tb_inport.goodsid and tb_provider.id=tb_inport.providerid)as b)