Input a name for mysql table when working with python

Viewed 23

I am making a project using mysql connector with python. I am creating a function in which I want to create a table with a name inputted by user through python. But it is not working.

Source code I am using is this:

enter image description here

1 Answers

Avoid using slash(/) in the column name. You may change Maths/Hindi to maths_hindi and Biology/Computer_science to biology_computer_science, you can use slashes in column comment.

Related