docs: close cursor after use

This commit is contained in:
Adam Ji 2023-11-21 10:35:27 +08:00
parent a10431cea8
commit b202d75cdc
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ data = cursor.fetchall()
print(column_names)
for row in data:
print(row)
# close cursor
cursor.close()
# output:
# inserted row count: 8