【知识碎片】Mysql语句

(1)mysql 更新最新的一条记录 

 update tb_test set name=小东  where type=2 order by created_at DESC limit 1;