---
title: "查看mysql&sqlserver的一个数据库中各个表的数据量  "
author: "ch_dj"
date: "2015-03-26T13:59:21Z"
tags: []
categories: ["数据库"]
slug: "mysql-sqlserver"
draft: false
lastmod: "2015-03-26T13:59:38Z"
id: 2195773
url: "https://ch-dj.iteye.com/blog/2195773"
---

mysql查看v3x数据库的表：

use information_schema;

select table_name,table_rows from tables
where TABLE_SCHEMA = 'v3x'
order by table_rows desc;

 

sqlserver：

SELECT
 o.name, i. ROWS
FROM sysobjects o, sysindexes i
WHERE o.id = i.id  AND o.Xtype = 'U' AND i.indid < 2
ORDER BY o.name;


原文：http://sky302761277.blog.163.com/blog/static/198342213201422043113162/