docs: close cursor after use

This commit is contained in:
Adam Ji 2023-11-21 10:23:48 +08:00
parent 1bb50568c0
commit b3620a4939
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