Doing a simple query like this, I just want to get a list of the pkeys in the
table:
q = select([mytable.c.id,])
pkey_list = engine.execute(q).fetchall()
What I get back looks like:
[(1,), (2,)]
But what I need is just:
[1, 2]
It's easy enough to make that happen in Python, but was wondering if SQLA could
return it directly?
Thanks,
Michael
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.