I can't Insert a new data to SQLITE
-
Solved.
Using QSQLITE works perfectly. With QSQLITE2 doesn't.
Thanks a lot!
-
@wenks21 said:
qry.prepare("insert into sample1.db (firstname, lastname) values ('John','Dean')");
check this above line in your code:
The sql query should be : insert into table_name(column_name,column_name)values (value,value);Your are missing out the table_name instead adding your db name. That's wrong.