看他这么着急,就不删除了吧,我免费给你5组的select t4.id,t4.no,t4.name,t5.no,t5.name,t6.no,t6.name,t7.no,t7.name,t8.no,t8.name
from
(
  select id,no,name,f2 from
  (
   select id,no,name , (
   select count(*)%5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f1,
(
   select count(*)/5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f2  from abe t1
  ) as t2
  where f1=0
) as t4
left join
(
  select id,no,name,f2 from
  (
   select id,no,name , (
   select count(*)%5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f1,
(
   select count(*)/5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f2  from abe t1
  ) as t2
  where f1=1
) as t5
on t4.id=t5.id and t4.f2=t5.f2
left join
(
  select id,no,name,f2 from
  (
   select id,no,name , (
   select count(*)%5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f1,
(
   select count(*)/5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f2  from abe t1
  ) as t2
  where f1=2
) as t6
on t4.id=t6.id and t4.f2=t6.f2
left join
(
  select id,no,name,f2 from
  (
   select id,no,name , (
   select count(*)%5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f1,
(
   select count(*)/5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f2  from abe t1
  ) as t2
  where f1=3
) as t7
on t4.id=t7.id and t4.f2=t7.f2
left join
(
  select id,no,name,f2 from
  (
   select id,no,name , (
   select count(*)%5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f1,
(
   select count(*)/5 from abe t3 where t3.id=t1.id and t3.no<t1.no) as f2  from abe t1
  ) as t2
  where f1=4
) as t8
on t4.id=t8.id and t4.f2=t8.f2
order by 
t4.id,t4.no