Python में Databases का परिचय
Jason Myers
Co-Author of Essential SQLAlchemy and Software Engineer
fetchmany() से आप तय कर सकते हैं कि कितनी rows पर काम करना हैfetchmany() पर loop चला सकते हैंResultProxy को close करना होता हैwhile more_results:partial_results = results_proxy.fetchmany(50)if partial_results == []: more_results = Falsefor row in partial_results: state_count[row.state] += 1results_proxy.close()
Python में Databases का परिचय