CSQL 인터프리터의 세션 명령어로 지정한 테이블의 통계 정보를 확인한다.
csql> ;info stats <table_name>
다음은 CSQL 인터프리터에서 t1 테이블의 통계 정보를 출력하는 예제이다.
CREATE TABLE t1 (code INT);
INSERT INTO t1 VALUES(1),(2),(3),(4),(5); CREATE INDEX ON t1(code); UPDATE STATISTICS ON t1;
;info stats t1
CLASS STATISTICS **************** Class name: t1 Timestamp: Mon Mar 14 16:26:40 2011 Total pages in class heap: 1 Total objects: 5 Number of attributes: 1 Atrribute: code id: 0 Type: DB_TYPE_INTEGER Mininum value: 1 Maxinum value: 5 B+tree statistics: BTID: { 0 , 1049 } Cardinality: 5 (5) , Total pages: 2 , Leaf pages: 1 , Height: 2