Cant able to Delete Row from sqlite Database
<p>Can any one help me what he Problem in Code. I cant able to delete Row from the Database.</p>

<pre><code>-(void) deleteData {

    sqlite3_stmt    *statement;

    NSString *destinationPath = [self getDestinationPath];

    const char *dbpath = [destinationPath UTF8String];

    if (sqlite3_open(dbpath, &amp;database) == SQLITE_OK)
    {


        NSString *updateSQL = [NSString stringWithFormat: @"DELETE FROM BirthdayListDB WHERE id=\"%@\"",details.ids];

        const char *insert_stmt = [updateSQL UTF8String];

        sqlite3_prepare_v2(database, insert_stmt, -1, &amp;statement, NULL);
        if (sqlite3_step(statement) == SQLITE_DONE)
        {
            NSLog(@"Row deleted");

        } 

        else
        {
            NSLog(@"Failed to delete row");
        }
        sqlite3_finalize(statement);
        sqlite3_close(database);
    }

}
</code></pre>

<p>Here (sqlite3_stmt    *statement;) i am not getting statement value. I am getting null value for statement.Can any 1 help me in solving this.</p>

<p>Thanks!</p>
