Sunday, May 1, 2011

Re: fetching data from intermediate many-to-many table

Oleg Lomaka <...@gmail.com> :

> Sorry, but your question is too general as for me. Django doesn't support
> SQL joins directly. Could you specify with an example what data do you need
> to get from database using "joins"?

I just wonder if it is possible to get data from those three tables in
one sql query using django.
So far we have two queries, one fetching data from the `book` table
(title etc.), and after that the
second fetching sequences (genres, etc.) for this book.

I don't at all mind it be two separate queries, just curiosity.

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

No comments:

Post a Comment