13bool.mql 607 B

12345678910111213141516171819202122232425262728293031
  1. -- ============================================================
  2. -- bool 类型搜索测试
  3. -- ============================================================
  4. -- 1. 搜索 bool=true
  5. select * from /test/aaa/test_search where s_bool=true
  6. /**
  7. output()
  8. **/
  9. ;
  10. -- 2. 搜索 bool=false
  11. select * from /test/aaa/test_search where s_bool=false
  12. /**
  13. output()
  14. **/
  15. ;
  16. -- 3. 复合条件:bool + int
  17. select * from /test/aaa/test_search where s_bool=true and s_int>10
  18. /**
  19. output()
  20. **/
  21. ;
  22. -- 4. 复合条件:bool + string
  23. select * from /test/aaa/test_search where s_bool=true and s_name='search_int_001'
  24. /**
  25. output()
  26. **/
  27. ;