在DolphinDB中的subscribeTable函数使用时,只有tableName和handler两个参数是必须的,执行如下代码:
share streamTable(10000:0,`timestamp`temperature, [TIMESTAMP,DOUBLE]) as pubTable
share streamTable(10000:0,`ts`temp, [TIMESTAMP,DOUBLE]) as subTable
vtimestamp = 1..100
vtemp = norm(2,0.4,100)
tableInsert(pubTable,vtimestamp,vtemp)
topic1 = subscribeTable("pubTable",subTable)
返回如下错误:
2020.12.08 17:19:45.811: executing code ...
Syntax Error: [line #21] The function [subscribeTable] expects 5~12 argument(s), but the actual number of arguments is: 2
请问哪里出了问题?