SequoiaDB 简介
快速入门
安装部署
数据库实例
分布式引擎
SAC 管控中心
SequoiaPerf 性能分析工具
参考手册
常见问题及解答(FAQ)
版本信息
split by 按照某个数组字段将记录拆分。
split by <field_name>
| 参数名 | 参数类型 | 描述 | 是否必填 |
|---|---|---|---|
| field_name | string | 字段名 | 是 |
无
集合 sample.employee 中原始记录如下:
{ a: 1, b: 2, c: [3, 4, 5] }
{ a: 2, b: 3, c: [6, 7] }对集合 sample.employee 按字段 c 拆分
> db.exec( "select a,b,c from sample.employee split by c" )
{ "a": 1, "b": 2, "c": 3 }
{ "a": 1, "b": 2, "c": 4 }
{ "a": 1, "b": 2, "c": 5 }
{ "a": 2, "b": 3, "c": 6 }
{ "a": 2, "b": 3, "c": 7 }
Return 5 row(s).
Takes 0.5281s.
展开