【发布时间】:2020-10-29 17:27:27
【问题描述】:
我们知道我们可以写一个类似的函数
select avg val by category from tab
但是如果我需要编写复杂的自定义函数,比如
select myfunc by category from tab
此处 myfund 将使用选项卡中的多个列进行计算。例如在 myfunc 中,我可能会进行另一层选择,可能会进行一些过滤等。作为一个基本示例,我如何在a+b+c+d 下方进行包装
select a+b+c+d by category from tab
在 myfunc 内部,它可以看到列 a、b、c 和 d,并且会对它们进行一些操作?
【问题讨论】:
标签: kdb