如何实现查询数据的时候同时统计该数据有多少行 select count(*) from(select xx,cc,vv,bb,nn from biao) 表别名 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) from (select xx,cc,vv,bb,nn from biao) t加个表别名 select xx,cc,vv,bb,nn,count(*) as '行数' from biao group by xx,cc,vv,bb,nn select *,'行数'=(select count(*) from biao) from biao 谢谢`空了试下,,这样要是biao有很多行,那每行都会重新count(*)一下吗?``` select @@rowcount from (select xx,cc,vv,bb,nn from biao) t select @@rowcount as rows,* from Production.Product 存储过程插入int数据 sql导出exl数据后,在导入问题 菜鸟求助一个SQL数据库查询语句 数据库该往哪发展啊 请教MSDE问题 如何获得连接查询后的各字段的字段名? 关于SQL中字符串相加的问题 x64下怎么读取dbf文件 过程参数 数据库备份问题!马上给分! count()怎么用呢?怎样得到COUNT(*)的返回值 MS sqlserver 2000怎么批量导入导出图片数据(jpg)?
(select xx,cc,vv,bb,nn from biao) t加个表别名
select xx,cc,vv,bb,nn,count(*) as '行数'
from biao group by xx,cc,vv,bb,nn
select *,'行数'=(select count(*) from biao)
from biao
select @@rowcount from
(select xx,cc,vv,bb,nn from biao) t