| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 
 | CREATE DATABASE IF NOT EXISTS min_data;
 CREATE TABLE IF NOT EXISTS min_data.min_commodity
 (
 Symbol            String,
 TradingDate       Date,
 TradingTime       DateTime64(6),
 LastPrice         Float64,
 TradeVolume       Int64,
 TotalVolume       Int64,
 LastVolume        Int64,
 PreTotalPosition  Int64,
 TotalPosition     Int64,
 PrePositionChange Int64,
 TotalAmount       Int64,
 PriceUpLimit      Float64,
 PriceDownLimit    Float64,
 PreClosePrice     Float64,
 OpenPrice         Float64,
 ClosePrice        Float64,
 SettlePrice       Float64,
 SellPrice01       Float64,
 BuyPrice01        Float64,
 SellVolume01      Int64,
 BuyVolume01       Int64,
 MidPrice          Float64,
 local_time        DateTime64(6),
 cross_time        DateTime
 
 ) ENGINE = MergeTree ORDER BY (Symbol, cross_time);
 
 |