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.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to