[PyQt] returning SQL result as ordinary python string?
Panupat Chongstitwattana
panupatc at gmail.com
Thu May 3 06:14:10 BST 2012
Most example I was able to find were putting sql data into PyQt list/table
widgets. But I wasn't able to find example to do basic query. Can anyone
help give me some basic please?
For example, if I query selecting from a table with 3 records
query = QtSql.QSqlQuery(db)
query.exec_("SELECT id, password FROM user")
How do I access each record and return them as ordinary Python strings and
not QString?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120503/26af789d/attachment.html>
More information about the PyQt
mailing list