问题描述
在dolphindb中运行下面的语句
n=10000
x = select top n * from bn_1m_spot
实际看到的错误信息
Syntax Error: [line #2] integer constant expected after keyword top
怎么通过在DolphinDB的一个表中获取最大的n个字段。
在dolphindb中运行下面的语句
n=10000
x = select top n * from bn_1m_spot
Syntax Error: [line #2] integer constant expected after keyword top
怎么通过在DolphinDB的一个表中获取最大的n个字段。
top n中的n须是常数,不能是变量。若要用变量,可用sql函数来实现:
更多可参考https://github.com/dolphindb/...