36between.mql 640 B

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