you get array of arrays.
First array contains rows. Every row is just an array of fields, order is
the same as in your query.

On Sun, Dec 19, 2010 at 9:45 PM, Andy <selforgani...@gmail.com> wrote:

> I need  to execute some SQL queries involving joins and it seems like
> custom SQL is the way to go. A couple of  questions:
>
> 1) In the doc  (http://docs.djangoproject.com/en/1.2/topics/db/sql/
> #executing-custom-sql-directly) there's an example:
> cursor.execute("SELECT foo FROM bar WHERE baz = %s", [self.baz])
> What is the "self.baz" argument? What does it do?
>
> 2) After I execute a SELECT query, how do I access the different
> fields and different rows of the results?
>
> Thanks.
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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