It should be:orQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
query2.bindValue(":title" "%" + LEdit1 + "%");To copy to clipboard, switch view to plain text mode
It should be:orQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
query2.bindValue(":title" "%" + LEdit1 + "%");To copy to clipboard, switch view to plain text mode
its not working ........
plzzzzzzzzzzz check again for any problem..if there??
@shish
thanks for reply
check this again
this not working properly
Indeed, there's another mistake. It should be:
QSqlQuery::QSqlQuery( const QString & ) constructor executes the query, so you can't use it with placeholders.Qt Code:
QSqlQuery query2; query2.prepare(...); query2.bindValue( ... ); ...To copy to clipboard, switch view to plain text mode
... and there a comma is missing ;-)Qt Code:
query2.bindValue(":title" "%" + LEdit1 + "%");To copy to clipboard, switch view to plain text modeQt Code:
query2.bindValue(":title", "%" + LEdit1 + "%");To copy to clipboard, switch view to plain text mode
And by the way, I guess that the || is only understood by oracle. If using MySql use the CONCAT function.
Lykurg
its not working guys........
its shows error unable to fetch data...........
can u write and test any small code on any of ur table in mysql and then post it here plzzz.....
becoz its a basic search only ...!!!
which must be done...
@shish
Bookmarks