10class.mql 701 B

123456789101112131415161718192021222324252627282930313233
  1. delete from /test/测试二 with version
  2. /**
  3. onerror(continue)
  4. noerrinfo()
  5. **/
  6. ;
  7. drop class if exists /test/测试二/
  8. ;
  9. create class if not exists /test/测试二 (
  10. 字符串 STRSTR,
  11. 文本 text,
  12. 文字 text,
  13. 整数 int,
  14. 大整数 bigint,
  15. 双浮点 double,
  16. 自定义类型 DOUDOU,
  17. 浮点 float,
  18. 布尔 bool,
  19. 数据块 blob,
  20. indexes(字符串, 文本, 文字, 整数, 大整数, 自定义类型, 浮点, 双浮点, 布尔),
  21. keys(字符串, 文本)
  22. ) with core=memory;
  23. --must have nickname for private field
  24. alter class /test/测试二 with nickname='测试二' ;
  25. --taget define in tools, its string
  26. alter class /test/测试二 add column 目标 int ;