| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- -- ============================================================
- -- float 类型搜索测试
- -- ============================================================
- -- 1. 等值搜索 float
- select * from /test/aaa/test_search where s_float=10.5
- /**
- output()
- count(1)
- match("s_name","search_int_001")
- **/
- ;
- -- 2. 大于搜索 float
- select * from /test/aaa/test_search where s_float>30.0
- /**
- output()
- match("search_int_004")
- match("search_int_005")
- **/
- ;
- -- 3. 小于搜索 float
- select * from /test/aaa/test_search where s_float<1.0
- /**
- output()
- match("search_string_001")
- match("search_string_002")
- match("search_string_003")
- **/
- ;
- -- 4. 区间搜索 float
- select * from /test/aaa/test_search where s_float>=10.0 and s_float<=60.0
- /**
- output()
- **/
- ;
- -- 5. double 类型搜索
- select * from /test/aaa/test_search where s_double=10.555
- /**
- output()
- count(1)
- **/
- ;
- -- 6. 搜索不存在的 float 值
- select * from /test/aaa/test_search where s_float=99999.99
- /**
- output()
- count(0)
- **/
- ;
- -- 7. 搜索浮点范围的边界值
- select * from /test/aaa/test_search where s_double<1.0
- /**
- output()
- **/
- ;
|