先将matrix转换成表,然后unpivot处理,参考如下代码: //pane data n = 7 label = 2023.01.03 + 0..6 SH600000 = rand(4.0, n)//$DECIMAL64(3) SH600004 = rand(14.0, n)//$DECIMAL64(3) SH600006 = rand(114.0, n)//$DECIMAL64(3) p = table(label, SH600000, SH600004, SH600006) p = matrix(SH600000, SH600004, SH600...
回答于 2023-06-28 15:53
createTable,创建维度表,使用场景:百万行以内的数据,特点是整表加载到内存 createTable — DolphinDB 2.0 documentation
回答于 2023-06-26 10:00
ddb默认把空值搞成最小值,有助于提升性能。 上述情况,修改配置项nullAsMinValueForComparison, 改成false就行(单机版dolphindb.cfg,集群cluster.cfg) 节点后重启生效
回答于 2023-06-26 09:22
https://gitee.com/dolphindb/DolphinDBModules/blob/master/MarketHoliday/README.md#22-%E6%9B%BF%E6%8D%A2%E4%BA%A4%E6%98%93%E6%97%A5%E5%8E%86 这个教程2.2有说明
回答于 2023-06-07 10:52
使用函数concatDateTime https://www.dolphindb.cn/cn/help/200/FunctionsandCommands/FunctionReferences/c/concatDateTime.html?highlight=concatdatetime
回答于 2023-06-07 10:14