title: How to insert data into mysql table using python(MySQLdb)?
body: <pre><code>cur1 = connection.cursor() 
  cur3 = connection.cursor() 
  cur3.execute("SELECT * FROM TABLE1") 
  connection.commit()
  for i in range(0,totalRow-1): 
     row = cur3.fetchone() 
     if tempId.__contains__(row[0]): 
        cur1.execute("insert into summary (id, description, resolution) values (%s, %s, %s)",(row[0],row[1],tempResolution[tempId.index(row[0])]))  
  </code></pre>
  
  <p>The above code is not giving any error but data is not inserting in the database.</p>