【问题标题】:How to initialize a null table in dolphindb?如何在 dolphindb 中初始化一个空表?
【发布时间】:2019-06-24 01:33:43
【问题描述】:

我想写一个关于 dolphindb 中空表的测试用例。但是在手册中,我只能找到如何初始化一个 int(float/temporal scalar) 或一个向量......因此,如何在 dolphindb 中初始化一个空表?

【问题讨论】:

    标签: unit-testing types null initialization dolphindb


    【解决方案1】:

    请使用函数table创建空表

    colNames =`id`value
    colTypes =[INT, DOUBLE]
    capacity = 1000
    size = 10
    t = table(capacity : size, colNames, colTypes)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-03
      • 1970-01-01
      • 2012-02-02
      • 2018-11-21
      • 2022-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多