select @n:=@n+1 as ids, t.* from sys_menu t, (select @n:=0) d; 转载于:https://www.cnblogs.com/wangxiaowang/p/7976206.html