-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_table.sql
More file actions
30 lines (29 loc) · 892 Bytes
/
create_table.sql
File metadata and controls
30 lines (29 loc) · 892 Bytes
1
2
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 TABLE `financialdata`.`TaiwanStockPrice`(
`StockID` VARCHAR(10) NOT NULL,
`TradeVolume` BIGINT NOT NULL,
`Transaction` INT NOT NULL,
`TradeValue` BIGINT NOT NULL,
`Open` FLOAT NOT NULL,
`Max` FLOAT NOT NULL,
`Min` FLOAT NOT NULL,
`Close` FLOAT NOT NULL,
`Change` FLOAT NOT NULL,
`Date` DATE NOT NULL,
PRIMARY KEY(`StockID`, `Date`)
);
CREATE TABLE `financialdata`.`TaiwanFuturesDaily`(
`Date` DATE NOT NULL,
`FuturesID` VARCHAR(10) NOT NULL,
`ContractDate` VARCHAR(30) NOT NULL,
`Open` FLOAT NOT NULL,
`Max` FLOAT NOT NULL,
`Min` FLOAT NOT NULL,
`Close` FLOAT NOT NULL,
`Change` FLOAT NOT NULL,
`ChangePer` FLOAT NOT NULL,
`Volume` FLOAT NOT NULL,
`SettlementPrice` FLOAT NOT NULL,
`OpenInterest` INT NOT NULL,
`TradingSession` VARCHAR(11) NOT NULL,
PRIMARY KEY(`FuturesID`, `Date`)
)