| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- -- ============================================================
- -- bool 类型搜索测试
- -- ============================================================
- -- 1. 搜索 bool=true
- select * from /test/aaa/test_search where s_bool=true
- /**
- output()
- match("search_int_001")
- match("search_int_003")
- match("search_int_004")
- match("search_string_001")
- match("search_string_003")
- **/
- ;
- -- 2. 搜索 bool=false
- select * from /test/aaa/test_search where s_bool=false
- /**
- output()
- match("search_int_002")
- match("search_int_005")
- match("search_string_002")
- **/
- ;
- -- 3. 复合条件:bool + int
- select * from /test/aaa/test_search where s_bool=true and s_int>10
- /**
- output()
- match("search_int_003")
- match("search_int_004")
- **/
- ;
- -- 4. 复合条件:bool + string
- select * from /test/aaa/test_search where s_bool=true and s_name='search_int_001'
- /**
- output()
- count(1)
- **/
- ;
|