12case_sensitive.mql 883 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- ============================================================
  2. -- Field Case Sensitive 测试
  3. -- ============================================================
  4. -- 1. 查询时使用正确大小写
  5. select s_name, s_Value from /test/aaa/test_syntax where s_name='syntax_001'
  6. /**
  7. output()
  8. match("s_Value","100")
  9. **/
  10. ;
  11. -- 2. 查询带不同大小写字段
  12. select s_name, S_EXTRA from /test/aaa/test_syntax where s_name='syntax_001'
  13. /**
  14. output()
  15. match("S_EXTRA","extra data")
  16. **/
  17. ;
  18. -- 3. 查询时使用混合大小写
  19. select s_name, s_data from /test/aaa/test_syntax where s_name='syntax_002'
  20. /**
  21. output()
  22. match("s_data","case sensitive data")
  23. **/
  24. ;
  25. -- 4. 更新大小写字段
  26. update /test/aaa/test_syntax set S_EXTRA='UPDATED EXTRA' where s_name='syntax_001'
  27. ;
  28. select S_EXTRA from /test/aaa/test_syntax where s_name='syntax_001'
  29. /**
  30. output()
  31. match("S_EXTRA","UPDATED EXTRA")
  32. **/
  33. ;