不分页

SELECT (@i:=@i+1) i,user_id,user_name FROM user, (SELECT @i:=0) as i 

  

变量分页