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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
| SELECT * FROM jdbc('oracle-dev', 'select * from test_banner');
CREATE DATABASE IF NOT EXISTS test;
CREATE TABLE test.test_banner (
ID UInt32,
TITLE String,
CHANNEL String,
PIC_LOCATION String,
IS_GROUP Float32,
MAIN_PIC_URL String,
MAIN_PIC_URL_EN String,
LINK_TO String,
LINK_TO_EN String,
BASE_PIC_URL String,
START_TIME String,
END_TIME String,
IS_ENABLE Float32,
PIC_ORDER Float32,
CREATE_TIME DateTime,
UPDATE_TIME DateTime,
IS_DELETED Float32
)
ENGINE = MergeTree()
PRIMARY KEY ID;
select * from test.test_banner;
INSERT INTO test.test_banner (
ID,
TITLE,
CHANNEL,
PIC_LOCATION,
IS_GROUP,
MAIN_PIC_URL,
MAIN_PIC_URL_EN,
LINK_TO,
LINK_TO_EN,
BASE_PIC_URL,
START_TIME,
END_TIME,
IS_ENABLE,
PIC_ORDER,
CREATE_TIME,
UPDATE_TIME,
IS_DELETED
)
SELECT * FROM jdbc('oracle-dev', 'select * from test_banner');
CREATE TABLE test_order (
ORDER_ID Int32,
ORDER_NO String,
FIRST_NAME String,
LAST_NAME String,
EMAIL String,
USER_ID Int32,
DISTRIBUTOR_ID Int32,
ORDER_STATE Int32,
ORDER_TYPE Int32,
BIZ_CODE String,
CHANNEL String,
PAY_METHOD String,
TAX_ZIP_CODE String,
TOTAL_AMOUNT Float32,
COUPON_AMOUNT Float32,
TAX_AMOUNT Float32,
PAY_AMOUNT Float32,
PAY_NO String,
COUPON_CODE String,
BILLING_ADDR_ID Int32,
REFUND_STATE Int32,
REFUND_AMOUNT Float32,
ACTIVITY_CODE String,
REFER_CODE String,
AUTO_NEW Int32,
IS_LOGISTICS Int32,
LOGISTICS_ID Int32,
CONTACT_PHONE String,
LANGUAGE String,
CREATE_TIME DateTime,
UPDATE_TIME DateTime,
IS_DELETED Int32,
COLLEGE_ID Int32,
GRADE_NAME String,
DEPARTURE_DATE String,
PLAT_FORM String
)
ENGINE = MergeTree()
PRIMARY KEY ORDER_ID;
INSERT INTO test.test_banner (
ID,
TITLE,
CHANNEL,
PIC_LOCATION,
IS_GROUP,
MAIN_PIC_URL,
MAIN_PIC_URL_EN,
LINK_TO,
LINK_TO_EN,
BASE_PIC_URL,
START_TIME,
END_TIME,
IS_ENABLE,
PIC_ORDER,
CREATE_TIME,
UPDATE_TIME,
IS_DELETED
)
SELECT * FROM jdbc('oracle-dev', 'select * from test_banner');
|