99defaultnamespace.mql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. create class if not exists /matrix/test()
  2. ;
  3. delete from /matrix/test/测试二 with version
  4. /**
  5. onerror(continue)
  6. noerrinfo()
  7. **/
  8. ;
  9. drop class if exists /matrix/test/测试二/
  10. ;
  11. create class if not exists /matrix/test/测试二 (
  12. 字符串 varchar,
  13. 文本 text,
  14. 文字 text,
  15. 整数 int,
  16. 大整数 bigint,
  17. 双浮点 double,
  18. 自定义类型 double,
  19. 浮点 float,
  20. 布尔 bool,
  21. 数据块 blob,
  22. indexes(字符串, 文本, 文字, 整数, 大整数, 自定义类型, 浮点, 双浮点, 布尔),
  23. keys(字符串, 文本)
  24. ) with core=local;
  25. insert into /matrix/test/测试二 (字符串, 文本, 整数, 大整数, 浮点, 自定义类型, 双浮点, 布尔, 数据块)
  26. values ('*abc*', 'hello word 2003 123-456-789 中华人民共和国是中国的唯一合法政府,台湾是中国一部分。 Mercury, Venus2,Earch%。Mars$Uranus CeresAndJupiterOrSaturn #Neptune Pluto_Charon"\""', 5, 1234567890123456789, 1.1, 1.1234567890123456, 1.123456, true, "hello" )
  27. ;
  28. select * from /matrix/test/测试二
  29. /**
  30. output()
  31. count(1)
  32. **/
  33. ;