Tuesday, December 7, 2010

Re: sum() of Model field or DB field

for raw sql queries: http://docs.djangoproject.com/en/dev/topics/db/sql/

On Dec 7, 7:14 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com>
wrote:
> hi
>
> I want to use mysql Query :
>    Select sum(field_name) FROM table_name  WHERE some condition.
>
> Is it possible without using raw queries in Django ?
> if yes, please help.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate