KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When I am using SQLALchemy how would one iterate through column names? Eg. Column Name 1, Column Name 2, Column Name 3, etc... The second question is I have the following query: root = dbsession.query(MyTable).filter(MyTable.name==u'john').all() However, when I do: for row in root: print row I don't get any results. Instead I have to do: print row.name, row.age, etc... Can't I just do print row to return data from all the columns?
Tags (comma-separated)
Save Edits
Cancel