1.select.mql 879 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. select count(*) from /test/malert_status
  2. -- { output() }
  3. ;
  4. select id,identifier,day,vtime from /test/malert_status order by identifier limit -1
  5. -- { outputcount() retry(3) }
  6. ;
  7. select id,identifier,day,vtime from /test/malert_status limit 09999,2
  8. -- { output() count(2) loop(10) loopfrom(0) loopstep(2) }
  9. ;
  10. select id,identifier,day,vtime from /test/malert_status order by identifier limit 09999,2
  11. -- { output() count(2) loop(10) loopfrom(0) loopstep(2) }
  12. ;
  13. select id,identifier,day,vtime from /test/malert_status limit 20,2
  14. -- { outputcount() count(2) }
  15. ;
  16. select id,identifier,day,vtime from /test/malert_status limit 10,2
  17. -- { outputcount() count(2) }
  18. ;
  19. -- select * from / limit 09999, 1
  20. -- -- { output() loop(3) xparallel(10) }
  21. -- ;
  22. -- sql: select * from /test/malert_status
  23. -- -- { output() }
  24. -- ;
  25. -- sql: select * from /test/alert_status
  26. -- -- { output() }
  27. -- ;