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
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
--~
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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
3 matches
Mail list logo