Skip to content

Unable to delete data from table #13

Description

@CHEEHAO123
string db = "user91.db";

if (!sqlite_table_exists (db, "user5556")){
    sqlite_exec (db, "CREATE TABLE user5556 (number int,password varchar(255))");
    sqlite_exec (db, "INSERT INTO user5556 (number,password) VALUES (1,'123')");    

}

else{

     sqlite_exec (db,"DELETE FROM user5556");

}


The table will be created when first executed. But the second time executed, unable to delete the data from table as you can see in the else statement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions