Am Donnerstag, 30. Januar 2003 19:57 schrieb Dan Nelson:
> In the last episode (Jan 30), Christian Kohlsch?tter said:
> > Actually, you _can_ use ORDER BY with UPDATE.
> >
> > It works fine, if you do an
> >
> > update tb_roubr set id=id+1 where id>1 order by id DESC
> >
> > on your table.
>
> Only
In the last episode (Jan 30), Christian Kohlsch?tter said:
> Actually, you _can_ use ORDER BY with UPDATE.
>
> It works fine, if you do an
>
> update tb_roubr set id=id+1 where id>1 order by id DESC
>
> on your table.
Only if you're runing MySQL 4.0. 3.23 does not allow UPDATE .. ORDER BY.
C
Am Donnerstag, 30. Januar 2003 00:02 schrieb Dan Nelson:
> In the last episode (Jan 29), Igor Kutsyy said:
> > Could you help me with this. I`m trying to increment values of
> > primary auto_increment field from table, and ofcourse it is not
> > working. Could you tell me how to construct a query c
:+---+--+--+-+-++
:| Field | Type | Null | Key | Default | Extra |
:+---+--+--+-+-++
:| id | int(11) | | PRI | NULL|
:auto_increment |
In the last episode (Jan 29), Igor Kutsyy said:
> Could you help me with this. I`m trying to increment values of
> primary auto_increment field from table, and ofcourse it is not
> working. Could you tell me how to construct a query correctly.
> +---+--+--+-+-+--