776.between.mql 661 B

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