Hi
If you are interested in using multiple order by in django's ORM then use
TABLE.objects.order_by('column_A','column_B')
On Tue, Apr 23, 2013 at 11:18 AM, teddy wang <ivan.wang1004@gmail.com> wrote:
CREATE TEMPORARY TABLE TEMP (SELECT * FROM TABLE ORDER BY COLUMN_A);SELECT * FROM TEMP ORDER BY COLUMN_B;I want to implement this selection in Django use ORM,,,still have no idea,,,anybody help?thanks~~~~--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment