Arangodb 的循环变量
Arangodb's variable for looping
如何让变量在循环中增加?我试过这个 AQL 但它不起作用
LET x=0 // I am trying to find a way to increase this one over some conditions
FOR v IN male
Update v WITH (count:x+1) IN male
AQL 中的变量是不可变的,因此您不能重新分配它们。参见 docs
如何让变量在循环中增加?我试过这个 AQL 但它不起作用
LET x=0 // I am trying to find a way to increase this one over some conditions
FOR v IN male
Update v WITH (count:x+1) IN male
AQL 中的变量是不可变的,因此您不能重新分配它们。参见 docs