many_inserts.sql 572 B

1234567891011121314151617181920212223242526272829303132
  1. USE plato;
  2. pragma yt.ColumnGroupMode="perusage";
  3. $s1 = select * from Input where a != "";
  4. $s2 = select * from Input where a > "a1";
  5. insert into @a with column_groups="{a=#}"
  6. select * from $s1;
  7. insert into @b
  8. select * from $s1;
  9. insert into @c
  10. select * from $s1;
  11. insert into Output with column_groups="{a=#}"
  12. select * from $s1;
  13. commit;
  14. insert into @a with column_groups="{a=#}"
  15. select * from $s2;
  16. insert into @b
  17. select * from $s2;
  18. insert into @c with column_groups="{default=#}"
  19. select * from $s2;
  20. insert into Output with column_groups="{a=#}"
  21. select * from $s2;