801.memdb.like.mql 830 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. select v_varchar, v_text from /test/basic2 where v_varchar='a*'
  2. /**
  3. output()
  4. count(0)
  5. **/
  6. ;
  7. select v_varchar, v_text from /test/basic2 where v_varchar='*a'
  8. /**
  9. output()
  10. count(0)
  11. **/
  12. ;
  13. select v_varchar, v_text from /test/basic2 where v_varchar='\*a*'
  14. /**
  15. output()
  16. count(1)
  17. **/
  18. ;
  19. select v_varchar, v_text from /test/basic2 where v_varchar='*c\*'
  20. /**
  21. output()
  22. count(1)
  23. **/
  24. ;
  25. select v_varchar, v_text from /test/basic2 where v_text='hello'
  26. /**
  27. output()
  28. **/
  29. ;
  30. -- memdb 不支持分词,直接通配查找
  31. select v_varchar, v_text from /test/basic2 where v_text='e'
  32. /**
  33. output()
  34. **/
  35. ;
  36. select v_varchar, v_text from /test/basic2 where v_text='e*'
  37. /**
  38. output()
  39. **/
  40. ;
  41. select v_varchar, v_text from /test/basic2 where v_text='*e'
  42. /**
  43. output()
  44. **/
  45. ;
  46. select v_varchar, v_text from /test/basic2 where v_text='*e*'
  47. /**
  48. output()
  49. **/
  50. ;