【问题标题】:How to add a column to in-memory table in DolphinDB?如何在 DolphinDB 的内存表中添加一列?
【发布时间】:2019-09-09 08:22:51
【问题描述】:

DolphinDB 中的内存表:

t=table(10:0,`time`sym`bid`ofr,[TIMESTAMP,SYMBOL,DOUBLE,DOUBLE])

想给t添加一个新的列数,我试过addColumn函数,没用。

addColumn(t,`count,[INT])

execution was completed with exception
Usage: addColumn(table, newColNames, newColTypes). table must be a streaming table or a dfs-based table.

【问题讨论】:

    标签: database dolphindb


    【解决方案1】:

    我认为您需要使用 SQL 更新语句将列添加到 DolphinDB 中的内存表中。

    【讨论】:

      猜你喜欢
      • 2021-03-31
      • 2021-08-15
      • 2021-11-11
      • 2020-02-26
      • 2019-11-05
      • 2021-03-10
      • 2021-08-20
      • 2020-02-26
      • 2019-09-17
      相关资源
      最近更新 更多