Shmuma / sqlite3-mt4-wrapper

Wrapper DLL for sqlite3 usage from MT4
http://www.shmuma.ru/mt4-sqlite.html
45 stars 29 forks source link

Unable to delete data from table #13

Open CHEEHAO123 opened 1 year ago

CHEEHAO123 commented 1 year ago
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.