Hello sir thanks for your time and help
no problem
textBrowser_2->append(lstdata); \\ The data is displayed in the text browser but not in the data base.
And does the data looks like you expect ?
You have created your table as
thdata(Time_InterVal INTEGER, /* ... and 500 varchars*/ )
thdata(Time_InterVal INTEGER, /* ... and 500 varchars*/ )
To copy to clipboard, switch view to plain text mode
so in order to insert data into it you need to provide value for each column in your statement. Valid statements for this table looks like this:
insert into thdata values(x,'str1','str2',...,'str500');
insert into thdata values(x,'str1','str2',...,'str500');
To copy to clipboard, switch view to plain text mode
where x is an integer value, and str1, ..., str500 are "varchars" (strings).
Note that each string is wrapped around the extra quotes.
So the value of "lstdata" should look like
x,'str1','str2',...,'str500'
x,'str1','str2',...,'str500'
To copy to clipboard, switch view to plain text mode
in order to give you a valid statement.
I'm gonna repeat myself, please check the QSqlQuerry::lastError(), this could really give you a clue about what you are doing wrong.
Bookmarks