Select (Select count(*) from table1) + (select count(*) from table2)
 + ... + (select count(*) from tabneN)

解决方案 »

  1.   

    select (select count(*) from 表1)
         + (select count(*) from 表2)
    ......
      

  2.   

    Select (Select count(*) from table1) + (select count(*) from table2)
     + ... + (select count(*) from tabneN)应该可以了。
      

  3.   

    这样要快得多:SELECT sum(rows) FROM sysindexes WHERE indid < 2 
    and (
    id = OBJECT_ID('table1') or 
    id = OBJECT_ID('table2') or
    .....
    )
      

  4.   

    select sum(rows) 记录数 from sysindexes where  indid<2 and id in (object_id('Table1'),object_id('table2'))