sqlite3 检查数据库是否可用


  检查SQLite数据库是否可用 [root@Linux]# sqlite3 xx.db sqlite3> PRAGMA integrity_check; ok或者ERROR:xxx   PRAGMA integrity_check; 测试OK的数据库不一定OK,但是,PRAGMA integrity_check; 测试报错的一定存在错误! https://blog.csdn.net/linczone/article/details/45933885?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.channel_param