Avatar of ocean O
ocean O
Flag for United States of America

asked on 

Python sql

Hi, I have a question about python.
I have a line of code in py file: results = cursor.fetchall()
But I need change to retrieve the rows in some chunks ( ex: 5000 rows) instead of  "fetchall"

For example:     rows = cursor.fetchmany(5000)

How can I do it?
Thanks
PythonPostgreSQLSQL

Avatar of undefined
Last Comment
ocean O

8/22/2022 - Mon