hi
im unable to insert a record into the table but im able to execute the select
query..i checked ,the db connection is true..
but it shows message like below...Qt Code:
if(db1.open()) { qDebug()<<"connection ok"; QSqlQuery query; query.exec("insert into waitrequest(bednumber)values('123')"); }To copy to clipboard, switch view to plain text mode
QSqlQuery:: exec: database not open
but if i use select query i get the result!!.
any help is highly respected!!
thanks...![]()
Bookmarks