Guest User

Untitled

a guest
Jul 26th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. 0: jdbc:ignite:thin://127.0.0.1/> select * from cache1;
  2. +--------------------------------+--------------------------------+--------------------------------+
  3. | ID | AGID | VAL |
  4. +--------------------------------+--------------------------------+--------------------------------+
  5. | 1 | 100 | 10-15 |
  6. | 2 | 100 | 17-20 |
  7. | 3 | 100 | 30-50 |
  8. | 4 | 101 | 10-15 |
  9. | 5 | 101 | 17-20 |
  10. +--------------------------------+--------------------------------+--------------------------------+
  11. 5 rows selected (0.007 seconds)
  12. 0: jdbc:ignite:thin://127.0.0.1/> (select * from cache1 where agid = 100 limit 2) union (select * from cache1 where agid = 101 limit 2);
  13. +--------------------------------+--------------------------------+--------------------------------+
  14. | ID | AGID | VAL |
  15. +--------------------------------+--------------------------------+--------------------------------+
  16. | 4 | 101 | 10-15 |
  17. | 2 | 100 | 17-20 |
  18. | 5 | 101 | 17-20 |
  19. | 1 | 100 | 10-15 |
  20. +--------------------------------+--------------------------------+--------------------------------+
  21. 4 rows selected (0.005 seconds)
Add Comment
Please, Sign In to add comment