title: How to select many rows from a dictionary (executemany select)
body: <p>I'm using Python and its MySQLdb module, 
  is it possible to do a "selectmany"-like from a tuple/dictionary/list in the condition</p>
  
  <p>something like this:</p>
  
  <pre><code>cursor.executemany("""SELECT * FROM customers WHERE name= %(name)s""",[d.__dict__ for d in data])
  
  selected_rows = cursor.fecthall()
  </code></pre>
  
  <p>doing a delete/update/insert works fine with this method :</p>
  
  <pre><code>cursor.executemany("""UPDATE customers SET item = %(item)s WHERE name = %(name)s""",[d.__dict__ for d in data])
  </code></pre>