UPDATE only highest (id)

wxdqz

New Member
Does anybody know a method of updating a sinlge value where the id=MAX(id)

The following query does not work, and it appears the mySQL does not allow the ORDER BY
for UPDATE.


UPDATE table SET foo='value' ORDER BY id DESC LIMIT 1

Thanks
 
Back
Top