Я думаю, это то, что я должен делать?
sqlite3_stmt* res;
const char* sqlInsert = "INSERT INTO MyTable VALUES(NULL, ?, ?);";
sqlite3_prepare_v2(db, sqlInsert, -1 , &res, 0);
const char* test1 = "ABC";
const char* test2 = "XYZ";
if (sqlite3_bind_text( res, 1, test1, 3, 0 ) != SQLITE_OK)
{
printf("\nError 1.\n");
}
if (sqlite3_bind_text(res, 2, test2, 3, 0) != SQLITE_OK)
{
printf("\nError 2.\n");
}
int step = sqlite3_step(res);