Best unofficial Apache Server developers community |
|
According to CREATE VIRTUAL TABLE syntax, IF NOT EXISTS clause is not available. How should I handle the case when the virtual table already exists without using DROP TABLE IF EXISTS? I want to use rtree and fts module.
posted via StackOverflow
|
|
 
|
You can use
Then bind the virtual table name to your statement and call sqlite3_step(). If you get SQLITE_ROW back, then your table exists. To be certain that it is a virtual table, check the |