36between.mql 635 B

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