update table1 set a =(select  b from table1 order by time desc limit 1 ) where id ='123'就是把table1的a 设置为 table1 最新一条记录的b列的值