---
title: "查看某表高水位线"
author: "gip666"
date: "2013-03-08T13:54:05Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2013-03-08T13:54:05Z"
id: 1826182
url: "https://gip666.iteye.com/blog/1826182"
---


某张表的高水位线可以通过以下命令来查询：
analyze table tablename compute statistics;    
 //对表进行分析，收集统计信息

select table_name,blocks,empty_blocks from user_tables
   where table_name='table_name';

其中的blocks就是HWM的值,。