可以将查询的结果作为参数传递给DolphinDB中的下一个函数吗?

huangapple go评论76阅读模式
英文:

Can I pass the result of a query as an argument to the next in DolphinDB?

问题

我有一个kdb+/q语句

{select from x where ...}{select from x where ...}select from table

我可以在DolphinDB中像这样迭代传递参数吗?

英文:

I have a kdb+/q statement

{select from x where ...}{select from x where ...}select from table 

Can I iteratively pass arguments like this in DolphinDB?

答案1

得分: 1

以下是翻译好的代码部分:

(x -> select * from x where id > 7)(select * from t where id > 5)

定义一个 lambda 函数 `x -> select * from x where id > 7`,并使用 `select * from t where id > 5` 作为传递的参数。
英文:

You can try the following script:

(x -> select * from x where id > 7)(select * from t where id > 5)

Define a lambda function x -> select * from x where id > 7 with select * from t where id > 5 as the passed arguments.

huangapple
  • 本文由 发表于 2023年3月23日 09:39:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/75818611.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定