On 10/4/05, Christiane Lemke <[EMAIL PROTECTED]> wrote:
>
>
> I try to update a row of a Sqlite3 Database with the c++ api using the
> following lines of code:
>
> char dbquery[1024];
> int rc;
> sprintf(dbquery, "update zeit_tabelle set zeit = %d where username like
> '%s';", 12345, test);
> rc = sqlite3_exec(db, dbquery, 0, 0, 0);



You gave no details.

Did you open the database first?

sqlite3* dbInput = NULL;
int rc = sqlite3_open( dbNameInput.c_str(), &dbInput );
if ( rc )
throw "Can't open source database";

Does zeit_tabelle exist?

Did you bind the variables you're referencing in the update statement?

Reply via email to