docs: close cursor after use

This commit is contained in:
Adam Ji 2023-11-21 10:35:27 +08:00
parent b3620a4939
commit c0676ceb75
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