pymysql.err.OperationalError: 1136, Column count doesn t match value count at row 1

Record the error caused by carelessness:
pymysql.err.OperationalError: 1136, Column count doesn t match value count at row 1
1054-Unknown column '1' in'field list'

That's right, these two error messages delayed my two classes. Here are the possible reasons for the error:

I used two classes to summarize a reason online:

The number of fields is different from the number of value values! This is the main reason for these two error messages, which leads to data not being inserted into the database.
But I do not deny that there must be other reasons for the error, such as me:
nonsense reason: the table name is typed incorrectly
Just because of a table name, I wasted 90 minutes of my precious time, which is really annoying. . .

Therefore, everyone must be serious when typing the code. When reporting an error, if Du Niang can't solve the problem, you must think about your own reasons-check whether your code is on a business trip.

Summary:
attentive, attentive, attentive.

Guess you like

Origin blog.csdn.net/m0_46202060/article/details/109959551