title: What is the syntax to INSERT datetime variable INTO VALUES
body: <p>What is the syntax for inserting a SQL datetime data type into a row?
  The following in Python gives a NULL value for the timestamp variable only.</p>
  
  <pre><code>timestamp = datetime.datetime.today()
  print timestamp
  query = "INSERT INTO table1 (name, class, time_update) VALUES('ONE','TWO',@timestamp)"
  cursor.execute(query)
  </code></pre>