Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to delete data from table #13

Open
CHEEHAO123 opened this issue Feb 12, 2023 · 0 comments
Open

Unable to delete data from table #13

CHEEHAO123 opened this issue Feb 12, 2023 · 0 comments

Comments

@CHEEHAO123
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant