10class.mql 818 B

1234567891011121314151617181920212223242526272829303132333435
  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=cassandraonly;
  23. create class if not exists /test/测试/子类 () with autosearch=true , version=false , key=manu, nickname = '测试子类' ;
  24. --must have nickname for private field
  25. alter class /test/测试 with nickname='测试' ;
  26. --taget define in tools, its string
  27. alter class /test/测试 add column 目标 int ;