原始数据: select * from mto_config 为查询记录编上递增序号 SELECT ( @i := @i + 1 ) num, m.* FROM mto_config m, ( SELECT @i := 0 ) AS i