I am attaching a code debug error message that attaches the excel file below to mysql workbench using python.

Asked 2 years ago, Updated 2 years ago, 34 views

The code was slightly modified and executed.

The table exportimport201006 is in the created state.

I'm trying to put a value in this table, but the following error appears.

How do we solve this?

python mysql

2022-09-22 18:48

1 Answers

The cursor is valid only in the with block.

When I came out of the with block, cursor.close() was done automatically. So, the error message "cursor closed" came out.

If you put an error message into the question in text form, you may get caught when other people search for the same problem in the future.


2022-09-22 18:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.