you can use
select DISTINCT tbl_name from sqlite_master where tbl_name = ?
Then bind the virtual table name to your statement and call sqlite3_step (). If you return SQLITE_ROW, then your table exists. To verify that it is a virtual table, check the column rootpageat "0".
source
share