--从描述看,是可以等于的,如果不需要等于的,自己去掉所有的=select * from ca1 a,ca2 b,ca3 c,ca4 d,ca5 e,ca6 f where a.第一位<=b.第二位 and b.第二位<=c.第三位 and c.第三位<=d.第四位 and d.第四位<=e.第五位 and e.第五位<=f.第六位
--每组数据也不能有两个相同的数. --搂主想中奖吧select * from ca1 a,ca2 b,ca3 c,ca4 d,ca5 e,ca6 f where a.第一位<=b.第二位 and b.第二位<=c.第三位 and c.第三位<=d.第四位 and d.第四位<=e.第五位 and e.第五位<=f.第六位 order by a.第一位,b.第二位,c.第三位,d.第四位,e.第五位,f.第六位
select 第一位=CA1.id, 第二位=CA2.id, 第三位=CA3.id, 第四位=CA4.id, 第五位=CA5.id, 第六位=CA6.id from CA1,CA2,CA3,CA4,CA5,CA6 where CA1.id<CA2.id and CA2.id<CA3.id and CA3.id<CA4.id and CA4.id<CA5.id and CA5.id<CA6.id
--放到新表select * into Ca7 from ca1 a,ca2 b,ca3 c,ca4 d,ca5 e,ca6 f where a.第一位<=b.第二位 and b.第二位<=c.第三位 and c.第三位<=d.第四位 and d.第四位<=e.第五位 and e.第五位<=f.第六位 order by a.第一位,b.第二位,c.第三位,d.第四位,e.第五位,f.第六位
--每组数据也不能有两个相同的数.
--搂主想中奖吧select * from ca1 a,ca2 b,ca3 c,ca4 d,ca5 e,ca6 f
where a.第一位<=b.第二位
and b.第二位<=c.第三位
and c.第三位<=d.第四位
and d.第四位<=e.第五位
and e.第五位<=f.第六位
order by a.第一位,b.第二位,c.第三位,d.第四位,e.第五位,f.第六位
from CA1,CA2,CA3,CA4,CA5,CA6
where CA1.id<CA2.id and CA2.id<CA3.id and CA3.id<CA4.id and CA4.id<CA5.id and CA5.id<CA6.id
--放到新表select *
into Ca7
from ca1 a,ca2 b,ca3 c,ca4 d,ca5 e,ca6 f
where a.第一位<=b.第二位
and b.第二位<=c.第三位
and c.第三位<=d.第四位
and d.第四位<=e.第五位
and e.第五位<=f.第六位
order by a.第一位,b.第二位,c.第三位,d.第四位,e.第五位,f.第六位