Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
244 views
in Technique[技术] by (71.8m points)

DolphinDB是否支持创建空表

login("admin","123456")
db=database("dfs://stations", VALUE, 2020.01.01..2020.12.31)
pt = db.createPartitionedTable(NULL, `datas, `RecordTime);

pt=loadTable("dfs://stations","datas")
select top 100 * from pt

执行上述保错:

pt = ::createPartitionedTable(db, NULL, "datas", "RecordTime") => Usage: createPartitionedTable(dbHandle, table, tableName, partitionColumns). Please provide one or a list of tables as model schema.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

创建分区表时,需要提供一个模板表,系统会在数据库中创建一个与模板表结构相同的分区表。创建库表详情请参阅https://www.dolphindb.cn/cn/h...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...