英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论