difference between cursor and connection objects
问题 I am confused about why python needs cursor object. I know jdbc and there the database connection is quite intuitive but in python I am confused with cursor object. Also I am doubtful about what is the difference between cursor.close() and connection.close() function in terms of resource release. 回答1: The cursor paradigm is not specific to Python but are a frequent data structure in databases themselves. Depending on the underlying implementation it may be possible to generate several cursors