请教大师们,把一个连接语句查询转化成count多少条应该怎么搞
来源:百度知道 编辑:UC知道 时间:2024/05/27 16:22:51
select a.sid,a.title,a.url,a.abstract,b.author from t_searchResult a inner join t_R_Websource_Sresult b on b.Sresultid=a.sid
想count一下看看有多少条数据
如果又取有count怎么弄呢
在c#里怎么读
如果单纯的想count怎么弄呢
想count一下看看有多少条数据
如果又取有count怎么弄呢
在c#里怎么读
如果单纯的想count怎么弄呢
select count(*) from t_searchResult a inner join t_R_Websource_Sresult b on b.Sresultid=a.sid
select count(a.sid) over() rowcount, a.sid,a.title,a.url,a.abstract,b.author from t_searchResult a inner join t_R_Websource_Sresult b on b.Sresultid=a.sid
你可能想要2个结果一个是这个查询的数据结果还有一个就是这个结果的行数