10class.mql 915 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. create class if not exists /mtest() with namespace='mtest'
  2. ;
  3. delete from /mtest/测试二 with version
  4. /**
  5. onerror(continue)
  6. noerrinfo()
  7. **/
  8. ;
  9. drop class if exists /mtest/测试二/
  10. ;
  11. create class if not exists /mtest/测试二 (
  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. create class if not exists /mtest/测试二/子类 () with autosearch=true , version=false , key=manu, nickname = 'mtest测试二子类' ;
  26. --must have nickname for private field
  27. alter class /mtest/测试二 with nickname='mtest测试二' ;
  28. --taget define in tools, its string
  29. alter class /mtest/测试二 add column 目标 int ;