precompute_parallel_mix.sql 248 B

1234567
  1. use plato;
  2. $a = select key from Input order by key limit 1;
  3. $b = select key from Input order by key limit 1 offset 1;
  4. insert into Output1 select * from Input where key <= $a;
  5. insert into Output2 select * from Input where key >= $a and key != $b;