在尝试更改表的全部列名时报错

执行下列代码报错:

colNames = ["open_time", "open", "high", " ow", "close", "volume",“interval","quote_volume'count""taker_buy_volume""taker_buy_quote_volume","code"]
def transType(code, interval, mutable memTB){
    memTB.rename!(concat('' + colNames ))
    print(memTB.columnNames( ))
}

attachments-2023-10-C4H170uP651c339f5a7ea.png


请先 登录 后评论

1 个回答

wale

DolphinDB不支持全局变量,colNames应该作为参数传入。

请先 登录 后评论