title: Using MySQL functions in python
body: <p>I am trying to use mysql functions date time function <code>str_to_date</code> in python. I need a guide on how to use mysql functions in python. <code>Raw_Data</code> is the name of the table.</p>
  
  <pre><code>sql = """INSERT INTO RawData(DateTime) VALUES ('%s')""" % (STR_TO_DATE(date_time,'%d/%b/%Y:%T'))     
  cursor.execute(sql)
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>NameError: name 'STR_TO_DATE' is not defined
  </code></pre>