可以用loadTextEx函数,loadTextEx函数支持transform,就是在写入数据库之前,可以处理一下数据。详见https://gitee.com/dolphindb/T... 第4节。示例如下:def addcol(mutable t){ t["TradeDate"]=2020.10.14 t["StockCode"]="688377" return t } tmpTB=loadTextEx(dbHandle=db,tableName=`tb1,partitionColumns=`TradeDate`StockCode,filename=dataFilePath,transform=addcol);
可以用loadTextEx函数,loadTextEx函数支持transform,就是在写入数据库之前,可以处理一下数据。详见https://gitee.com/dolphindb/T... 第4节。示例如下: