I am trying to update fields in my DB, but got stuck with such a simple problem: I want to update just one row in the table with the biggest id number. I would do something like
Old Question, but for anyone coming across this you might also be able to do this:
UPDATE `table_name` a JOIN (SELECT MAX(`id`) AS `maxid` FROM `table_name`) b ON (b.`maxid` = a.`id`) SET a.`name` = 'test_name';