title: SQLALCHEMY - Iterating through data
body: <p>When I am using SQLALchemy how would one iterate through column names?</p>
  
  <p>Eg.</p>
  
  <pre><code>Column Name 1, Column Name 2, Column Name 3, etc...
  </code></pre>
  
  <p>The second question is I have the following query: </p>
  
  <pre><code>root = dbsession.query(MyTable).filter(MyTable.name==u'john').all()
  </code></pre>
  
  <p>However, when I do:</p>
  
  <pre><code>for row in root:
      print row
  </code></pre>
  
  <p>I don't get any results.  Instead I have to do:</p>
  
  <pre><code>print row.name, row.age, etc...
  </code></pre>
  
  <p>Can't I just do <code>print row</code> to return data from all the columns?</p>