Python/MySQL query error: `Unknown column`
问题 This script is meant to act as a command-line front-end to add records to a locally hosted MySQL database. I am getting this error: mysql.connector.errors.ProgrammingError: 1054 (42S22): Unknown column 'watermelon' in 'field list' But watermelon is the value I am trying to enter, not the column name! Here is the script: #! /usr/bin/python #use command line as front end to enter new rows into locally hosted mysql database import mysql.connector #create inputs new_fruit = raw_input('What fruit