On Jan 19, 2008, at 7:49 AM, alex bodnaru wrote:
> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > hi friends, > > could i know the columns a select would retrieve, without examining > the > first record retrieved? > or if no records matched the where. > result.keys() this returns you string names. if you have a select(), you can get the cols without even executing by saying someselect.c.keys(), or you can get the Column objects by saying list(someselect.c). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
