result = sqlite3_exec( db, "SELECT COUNT(*) FROM sqlite_master where type='table' and name='TestCase'", LoadMyInfo, NULL, &errmsg );
本文介绍了一种使用SQLite查询特定表(即TestCase)是否存在数据库的方法。通过执行SQL指令,可以统计名为TestCase的表是否存在于sqlite_master中。
result = sqlite3_exec( db, "SELECT COUNT(*) FROM sqlite_master where type='table' and name='TestCase'", LoadMyInfo, NULL, &errmsg );
1528
7297

被折叠的 条评论
为什么被折叠?