title: How to use for loops to do multiple SQL statements in python
body: <p>I have SQl statement List, when running the a single statement it work running the loop it gives:  </p>
  
  <p>pyodbc.ProgrammingError: ('42000', "[42000] [MySQL][ODBC 5.1 Driver][mysqld-5.5.8]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Sql_2' at line 1 (1064) (SQLExecDirectW)")</p>
  
  <pre><code>SQl = """Select something"""
      SQl_2 = """Select something"""
      SQl_3 = """Select something"""
  
  
  Sqls= ('Sql','Sql_2','Sql_3')
  
  for x in Sqls:
      print x
      use = Sql_2  
      # use = x
      cxn = pyodbc.connect('DSN=MySQL;PWD=xxx') 
      csr = cxn.cursor()
      csr.execute(use)
      fetch = csr.fetchall()
  </code></pre>