title: Inserting variable as SQL value in python
body: <pre><code>exp = "Ted is a good film"
  cursor.execute ("insert into films (descp) values (exp)")
  cursor.commit()
  </code></pre>
  
  <p>I'm using above code with MS SQL server, but it says: Invalid column name'exp'
  I'm using pyodbc.</p>