直接贴SQL语句吧: select @rownum:=@rownum+1 AS rownum ,NAME,createtime from (SELECT @rownum:=0) r, jw_user LIMIT 112; 直接贴截图: