title: How to insert null value to int column in MySQL using python 2.7
body: <p>Trying to insert into a null value to MySql table using python. Below is the code executed </p>
  
  <pre><code>sql="""insert into db.table_name (int_column, column2) values (None, 'test')"""
  cursor.execute(sql)
  </code></pre>
  
  <p>while running getting below error </p>
  
  <blockquote>
    <p>mysql.connector.errors.ProgrammingError: 1054 (42s22) : Unknown column
    'None' in 'field list'</p>
  </blockquote>
  
  <p>Tried this out with reference to <a href="https://stackoverflow.com/questions/5507948/how-can-i-insert-null-data-into-mysql-database-with-python">this solution </a></p>