I create table in SQLite without checking every time whether it exists.
sqlite3_stmt* create_stmt = NULL;
if (sqlite3_prepare_v2(db, "CREATE TABLE mytable (sif INTEGER PRIMARY KEY, name VARCHAR, description VARCHAR);", -1, &create_stmt, NULL) == SQLITE_OK)
{
sqlite3_step(create_stmt);
sqlite3_finalize(create_stmt);
}
If the table doesn't exist, it will be created; if it exists, nothing happens.
I would like to know if there is some way to get information whether the table is created or just checked?