首页 > 数据库 > SQL Server > sqlserver查询一个库所有表的记录数
select 'select count(*) from "'+name+'" union all' from sysobjects where type='u' order by name
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30126024/viewspace-2124851/ ,如需转载,请注明出处,否则将追究法律责任。
注册时间:2015-02-02