I\'m getting a weird error when inserting some data from a Python script to MySQL. It\'s basically related to a variable being blank that I am inserting. I take it that MyS
When using mysqldb and cursor.execute(), pass the value None, not "NULL":
cursor.execute()
None
"NULL"
value = None cursor.execute("INSERT INTO table (`column1`) VALUES (%s)", (value,))
Found the answer here