so there is no one query solution, ok. thx

On 1/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> object = Model.objects.get(pk=x)
> object.col += 1
> object.save()
>
> On Jan 26, 11:54 am, "Wolfram Kriesing" <[EMAIL PROTECTED]>
> wrote:
> > I know I had read it here a while ago, but I cant find it.
> > So what was the ORM way of doing a
> >     UPDATE table SET col=col+1
> > ?
> >
> > --
> > thx
> >
> > Wolfram
>
>
> >
>


-- 
cu

Wolfram

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

Reply via email to