It worked. Thanks!

On Jan 15, 11:37 am, Marco Mariani <[EMAIL PROTECTED]> wrote:
> milenawrote:
>
> > I have tried
>
> > select([func.count("*")], from_obj=[table_name]).execute()
>
> > but it didn't workI suppore you're not using mappers, so this is the 
> > fastest method:
>
> number_of_rows = table.count().execute().fetchone()[0]
> 
> where table is the table object


--~--~---------~--~----~------------~-------~--~----~
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