pyodbc return multiple cursors from stored procedure with DB2
问题 I have a python program that calls a stored procedure from db2 database. I am using results = cursor.fetchall() to process the results of my stored procedure. However, my stored procedure returns two cursors. results only contains the first one. I need a way to loop through as many cursors as I want. I was hoping fetchmany() would be my answer but it is not. I need to be able to do multiple result sets as the program I am writing can only call one stored procedure. It would take a lot to go