sql只修改第一二行数据

update t_table set colname=*  where a=1 order by id desc limit 1,2

原文地址:https://www.cnblogs.com/wangcp-2014/p/5779976.html