sqlite3 检查数据库是否可用

 
检查SQLite数据库是否可用
[root@Linux]# sqlite3 xx.db
sqlite3> PRAGMA integrity_check;
ok或者ERROR:xxx
 
PRAGMA integrity_check; 测试OK的数据库不一定OK,但是,PRAGMA integrity_check; 测试报错的一定存在错误!
posted @ 2022-03-23 09:58  【黑手套】  阅读(292)  评论(0编辑  收藏  举报