On Fri, 22 Apr 2011 13:08:17 -0500, Jacob Kaplan-Moss <[email protected]> 
wrote:
> Blog.objects.raw('''SELECT * FROM blog

Hey, that's cheating :-)


> No, really -- if I was faced with a query, like this, that was easier
> to express with SQL, I'd reach for `raw()` long before trying to
> figure if I could twist the ORM to do my bidding.

Yes, but while raw() has its uses, it's an interesting question: Is
there a way to do this with the Django ORM or not? It's always hard to
write raw queries in a database independent way, so there are good cases
where you want to avoid raw().


Kind regards

Michael

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

Reply via email to