calling inner_columns() on the select() returns what actually gets  
rendered.  The "exported" columns, i.e. those which you'd use when  
using the select() as a subquery, are accessible via the .c. attribute  
on the select() which has a dictionary interface.


On May 21, 2008, at 12:01 PM, vkuznet wrote:

>
> Hi,
> is there any way to ask select object what is suppose to select? There
> is a method locate_all_froms which return FROM part of select, but I'm
> interesting in select part of SQL statement.
>
> So, something like:
>
> s = select([table1.c.a,table2.c.b]....)
> listOfSelectedColumns = s.get_selectable_columns()
>
> which will return set or list of [table1.c.a,table2.c.b].
>
> Thanks,
> Valentin.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to