PythonWise
If it won't be simple, it simply won't be. [
Hire me
,
source code
]
Friday, January 26, 2007
Access SQL Query Results By Column Name
If work with
sqlalchemy
, you can access columns by their name and not just by their position (e.g.
row.id
instead of
row[0]
).
If you can't use sqlalchemy, you can still access columns by their names, at least on
SQLite
and
PostgreSQL.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment