Looking at this code:

    newsqlcmd="select title,author from booklist"
    cursor=connection.cursor()
    cursor.execute (newsqlcmd)
    tms=cursor.fetchall()  #this is the actual recordset being pushed
back to the template


    how can I get the record count?  I could loop through and
increment a counter but i know that is inefficient.



--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to