Data=select * from loadTable(...) where ... tableInsert(t, Data)Data=NULL这样就写入到内存表t了
回答于 2024-01-12 16:58
可以参考这篇文档 https://gitee.com/dolphindb/DolphinDBModules/tree/master/ops#38-unsubscribeall- 语法:unsubscribeAll() 详情:取消当前节点上的所有订阅。 例子 share streamTable(10:0, `id`val, [INT, INT]) as st t = table(10:0, `id`val, [INT, INT]) subscribeTable(tableName=`st, actionName=`sub_st,...
回答于 2024-01-12 15:35
DolphinDB中有bucket函数,函数的具体语法和参数可以参考https://docs.dolphindb.cn/zh/help/FunctionsandCommands/FunctionReferences/b/bucket.html?highlight=bucket 下面是一个DolphinDB和pandas进行数据分箱操作的对比示例: DolphinDB中的示例: bucket(9 23 54 36 46 12, 12:54, 2); [,0,,1,1,0]bucket(9 23 54 3...
回答于 2024-01-12 15:34
可以 addColumn 增加,或者用标准 SQL 的 alter table tableObj add columnName columnType; 语句
回答于 2024-01-12 15:24
DolphinDB并不像kdb那样区分RDB和HDB。DolphinDB的分布式数据库表,数据都是存储在磁盘上的,只有极小部分热数据和一部分元数据存储在内存中,所以占用内存空间很小。当然DolphinDB也有纯内存表,这个跟kdb的内存表是一样的。 用table,keyedTable,indexedTable,streamTable这些函数创建的表是纯内存表
回答于 2024-01-12 15:22