Last active
April 14, 2016 18:42
-
-
Save greedo/d70dd1adc7d6ec3da031c02db5520eea to your computer and use it in GitHub Desktop.
get a list of values right away in sqlalchemy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> results = engine_instance.execute(select([User.name, User.fullname])).fetchall() | |
for result in results: | |
... print(result.name, result.fullname) | |
ed Ed Jones | |
wendy Wendy Williams | |
mary Mary Contrary | |
fred Fred Flinstone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment