You tried to use:
sqlite3_exec(database, sqlStatement...
with the DELETE statement?
ALSO .... REMOVE FROM .... DO NOT REMOVE * FROM ....
Eliminated the following code from another place on the Internet for a more complete example ...
sqlite3 *db;
int rc;
rc = sqlite3_open( "C:\\MyDatabase", &db );
if ( rc )
{
sqlite3_close(db);
}
else
{
char *zErrMsg = 0;
rc = sqlite3_exec( db, "DELETE FROM yourTable", NULL, NULL, &zErrMsg );
if( rc != SQLITE_OK )
{
sqlite3_free( zErrMsg );
}
sqlite3_close(db);
}
sday source
share