Add Row
-
Greeting,
I'm new one here and i need some help in my project.
Actually, I working on Cashed table and trying to change some things on it. But i face problem, When i trying to add new row in the table it not appear to me in the run program. I just get (4 rows ). So Please if anyone can advice me to how i can add more rows in this cashed table??
@
QSqlQuery query;query.exec("create table test (id int primary key, start text, last varchar(20),Degree varchar(20), ss int(3))");
query.exec("insert into test values(1, 'Ta', 'Em','Bsc','2')");
query.exec("insert into test values(2, 'Do', 'Yo','Bsc','3')");
query.exec("insert into test values(3, 'Ah', 'Sa','Bsc','4')");
query.exec("insert into test values(4, 'DR', 'Su','Phd','3')");
query.exec("insert into test values(5, 'Sa', 'hh,'Bsc','3')");
@
if you see in the run only 4 rows appear ( 1 - 4) but the last one not appear.
I will be Grateful for any help and adviceKind Regards,
Fixed formatting for you. Please use @ tags around code sections; André
-
@QSqlQuery query;
query.exec("create table test (id int primary key,"
"startname text, lastname varchar(20),Degree varchar(20), ss int(3))");
query.exec("insert into test values(1, 'Ta', 'Em','Bsc','2')");
query.exec("insert into test values(2, 'Do', 'Yo','Bsc','3')");
query.exec("insert into test values(3, 'Ah', 'Sa','Bsc','4')");
query.exec("insert into test values(4, 'DR', 'Su','Phd','3')");
query.exec("insert into test values(5, 'Sa', 'hh,'Bsc','3')");
query.exec();
query.lastError();@mmm the same, Please how i will can get information on what wend wrong
Regards,