arangodb实现关系数据库的union all
作者:互联网
最开始想不到如何实现,今天茅坑顿开,不就是两个数组的append嘛
FOR x IN APPEND(
(
FOR v IN `test-dir`
FILTER LIKE(v.name,"d%")
RETURN {isDir:true,name:v.name}
),
(
FOR v IN `test-file`
FILTER LIKE(v.name,"f%")
RETURN {isDir:false,name:v.name}
)
)
LIMIT 57,10
RETURN x
/*
标签:isDir,RETURN,name,union,arangodb,FILTER,关系数据库,test,LIKE 来源: https://blog.csdn.net/Linzhongyilisha/article/details/95750381