Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def call_store_procedure():
- query = QtSql.QSqlQuery()
- query.prepare("CALL AsciiToInt(?, ?)")
- query.bindValue(0, "A")
- query.bindValue(1, 0, QtSql.QSql.Out)
- query.exec_()
- i = query.boundValue(1) # i is 65
- print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement