当前位置: 代码迷 >> Java Web开发 >> 请教这样的sql语句如何统计记录条数呢
  详细解决方案

请教这样的sql语句如何统计记录条数呢

热度:56   发布时间:2016-04-17 16:29:13.0
请问这样的sql语句怎么统计记录条数呢
jsp
请问这样的sql语句怎么统计记录条数呢
select   pro_products.*   ,pro_company.*   from   pro_products,pro_company   where   pro_products.iCompanyId=pro_company.iId

------解决方案--------------------
select count(*) from pro_products,pro_company where pro_products.iCompanyId=pro_company.iId
------解决方案--------------------
楼上正解~~~~
------解决方案--------------------
select count(*) from pro_products,pro_company
同时两个表,行么?
  相关解决方案