16notin.mql 726 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- ============================================================
  2. -- Not In 查询测试
  3. -- ============================================================
  4. -- 1. int not in
  5. select * from /test/aaa/test_search where s_int not in (10, 20)
  6. /**
  7. output()
  8. **/
  9. ;
  10. -- 2. float not in
  11. select * from /test/aaa/test_search where s_int not in (1, 2, 3)
  12. /**
  13. output()
  14. **/
  15. ;
  16. -- 3. string not in
  17. select * from /test/aaa/test_search where s_name not in ('search_int_001', 'search_int_002')
  18. /**
  19. output()
  20. **/
  21. ;
  22. -- 4. not in 空集合
  23. select * from /test/aaa/test_search where s_name not in ('')
  24. /**
  25. output()
  26. **/
  27. ;
  28. -- 5. not in 全部排除
  29. select * from /test/aaa/test_search where s_name not in ('non_exist_1', 'non_exist_2')
  30. /**
  31. output()
  32. **/
  33. ;