select @n:=@n+1 as ids, t.* from sys_menu t, (select @n:=0) d;

相关文章: