统计问题 Select (Select count(*) from table1) + (select count(*) from table2) + ... + (select count(*) from tabneN) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select (select count(*) from 表1) + (select count(*) from 表2)...... Select (Select count(*) from table1) + (select count(*) from table2) + ... + (select count(*) from tabneN)应该可以了。 这样要快得多:SELECT sum(rows) FROM sysindexes WHERE indid < 2 and (id = OBJECT_ID('table1') or id = OBJECT_ID('table2') or.....) select sum(rows) 记录数 from sysindexes where indid<2 and id in (object_id('Table1'),object_id('table2')) 可以在SQL Server 2005中定义全局的表变量不? 如何把一个列的数据填充固定长度? 关于一个select语句编写,在线等了,谢谢 SQL 查询语句 关于sql 返回一个空表的问题 向数据库插入空值是出错,在线等! 请问字段属性为自动编号用sql语句怎么写 高分求救:如何实现远程访问MS SQL Server2000数据库 使用查询分析器连接其他sqlserver数据库失败.怪事情! 请问:ASP用SQL SERVER数据库数据库比用ACCESS快吧?很奇怪的是我的ASP+SQL比ASP+ACCESS慢了,why?? 配置ODBC的办法是 SQL语句写法
+ (select count(*) from 表2)
......
+ ... + (select count(*) from tabneN)应该可以了。
and (
id = OBJECT_ID('table1') or
id = OBJECT_ID('table2') or
.....
)