36between.mql 542 B

123456789101112131415161718192021222324252627282930313233
  1. select id,v_int,v_bigint,v_float,v_double,v_varchar from /test/basic2 where v_int between 1 and 5
  2. /**
  3. output()
  4. count(4)
  5. **/
  6. ;
  7. select id,v_int,v_bigint,v_float,v_double,v_varchar from /test/basic2 where v_int between 1 and ?
  8. /**
  9. output()
  10. params(1)
  11. count(2)
  12. **/
  13. ;
  14. select id,v_int,v_bigint,v_float,v_double,v_varchar from /test/basic2 where v_int between ? and 5
  15. /**
  16. output()
  17. params(4)
  18. count(1)
  19. **/
  20. ;
  21. select id,v_int,v_bigint,v_float,v_double,v_varchar from /test/basic2 where v_int between ? and ?
  22. /**
  23. output()
  24. params(1,5)
  25. count(4)
  26. **/
  27. ;