使用objByName函数https://www.dolphindb.cn/cn/help/130/FunctionsandCommands/FunctionReferences/o/objByName.html?highlight=objbyname select * from objByName(tableName)
回答于 2021-10-27 16:43
iif函数类似case when语句,可参考教程https://www.dolphindb.cn/cn/help/FunctionsandCommands/FunctionReferences/i/iif.html?highlight=iif
回答于 2021-10-27 16:42
db = database("dfs://abc",VALUE,2021.01.01..2021.12.31) tableTmp = table(1:0,`date`sym`close`v,[TIMESTAMP,SYMBOL,DOUBLE,DOUBLE]) db.createPartitionedTable(tableTmp,`testTable,`date) //代码段1 a=loadTable(db,`testTable) b=loadTable(db,`testTable) a.append!(table(2021.03.05 09:45:50.000 as dat...
回答于 2021-10-22 11:20
详细教程为https://gitee.com/dolphindb/Tutorials_CN/blob/master/import_csv.md#24-%E5%AF%BC%E5%85%A5%E6%8C%87%E5%AE%9A%E5%88%97 如下摘取了部分内容: 首先,调用extractTextSchema函数得到目标文本文件的表结构。 dataFilePath="/home/data/candle_201801.csv" schemaTB=extractTextSchema(dataFilePath); 使用r...
回答于 2021-10-22 10:14
使用键值流数据表keyedStreamTable,参考文档:https://www.dolphindb.cn/cn/help/200/FunctionsandCommands/FunctionReferences/k/keyedStreamTable.html?highlight=keyedstreamtable
回答于 2021-10-19 15:44