Re: Increment in update

2003-01-30 Thread Christian Kohlschuetter
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

Re: Increment in update

2003-01-30 Thread 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 if you're runing MySQL 4.0. 3.23 does not allow UPDATE .. ORDER BY. C

Re: Increment in update

2003-01-30 Thread Christian Kohlschütter
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

RE: Increment in update

2003-01-30 Thread Sherzod Ruzmetov
:+---+--+--+-+-++ :| Field | Type | Null | Key | Default | Extra | :+---+--+--+-+-++ :| id | int(11) | | PRI | NULL| :auto_increment |

Re: Increment in update

2003-01-29 Thread 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 correctly. > +---+--+--+-+-+--