docs: close cursor after use
This commit is contained in:
parent
a10431cea8
commit
b202d75cdc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue