12native.mql 530 B

1234567891011121314151617181920
  1. -- ============================================================
  2. -- Native Keyspace 操作测试
  3. -- ============================================================
  4. -- 1. 访问 native keyspace(系统命名空间)
  5. -- 测试原生命名空间的访问能力
  6. select count(*) from /test/aaa/test_ext where e_name='ext_001'
  7. /**
  8. onerror(continue,'没有找到记录')
  9. output()
  10. match("count(*)","1")
  11. **/
  12. ;
  13. -- 2. 在 /test/aaa/ 命名空间下操作
  14. select e_name, e_value from /test/aaa/test_ext where e_name=^'ext'
  15. /**
  16. output()
  17. **/
  18. ;