| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Dan Nelson | Date: | January 30 2003 6:57pm |
| Subject: | Re: Increment in update | ||
| View as plain text | |||
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. Changes in release 4.0.0 (Oct 2001: Alpha) ------------------------------------------ * Added `ORDER BY' syntax to `UPDATE' and `DELETE'. -- Dan Nelson dnelson@stripped
| Thread | ||
|---|---|---|
| • Increment in update | Igor Kutsyy | 29 Jan |
| • Re: Increment in update | Dan Nelson | 30 Jan |
| • Re: Increment in update | Christian Kohlschütter | 30 Jan |
| • Re: Increment in update | Dan Nelson | 30 Jan |
| • Re: Increment in update | Christian Kohlschuetter | 30 Jan |
| • RE: Increment in update | Sherzod Ruzmetov | 30 Jan |
