Windows で SQLite 3 のインストール: 別ページ »で説明
展開(解凍)すると sqlite3_analyzer.exe ができる.
SQLite 3 のデータベース・ディレクトリ C:\SQLite に移る.
C: cd C:\SQLite
このとき,データベース名として mydb を指定する.(The logical database name is 'mydb').
.\sqlite3_analyzer.exe mydb > dbinfo.sql
sqlite3_analyzer C:\sqlite3\hoge.db > dbinfo.sql
sqlite3 C:\sqlite3\hoge.db
これで,情報が読み込まれる.
.read dbinfo.sql
データベース情報が表示される
select * from space_used;
int_pages, leaf_pages, ovfl_pages の列は,は各テーブルが占有しているページの数を示している. (Number of pages which each table occupies)