1
1
Table Create Table
2
2
t1 CREATE TABLE `t1` (
3
3
`Name` varchar(256) NOT NULL,
4
- `Description` varchar(256) NOT NULL
4
+ `Description` varchar(256) DEFAULT NULL
5
5
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`='ODBC' `CATFUNC`='Sources'
6
6
SET NAMES utf8;
7
7
#
@@ -14,53 +14,53 @@ TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr'
14
14
CATFUNC=Tables;
15
15
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
16
16
Table_Cat Table_Schema Table_Name Table_Type Remark
17
- MTR T1 TABLE
18
- MTR T2 TABLE
19
- MTR V1 VIEW
17
+ NULL MTR T1 TABLE NULL
18
+ NULL MTR T2 TABLE NULL
19
+ NULL MTR V1 VIEW NULL
20
20
DROP TABLE t1;
21
21
# All tables in all schemas (filtered with WHERE)
22
22
CREATE TABLE t1 ENGINE=CONNECT
23
23
TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr'
24
24
CATFUNC=Tables TABNAME='%.%';
25
25
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
26
26
Table_Cat Table_Schema Table_Name Table_Type Remark
27
- MTR T1 TABLE
28
- MTR T2 TABLE
29
- MTR V1 VIEW
27
+ NULL MTR T1 TABLE NULL
28
+ NULL MTR T2 TABLE NULL
29
+ NULL MTR V1 VIEW NULL
30
30
DROP TABLE t1;
31
31
# All tables "T1" in all schemas (filtered with WHERE)
32
32
CREATE TABLE t1 ENGINE=CONNECT
33
33
TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr'
34
34
CATFUNC=Tables TABNAME='%.T1';
35
35
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
36
36
Table_Cat Table_Schema Table_Name Table_Type Remark
37
- MTR T1 TABLE
37
+ NULL MTR T1 TABLE NULL
38
38
DROP TABLE t1;
39
39
# All tables "T1" in all schemas (filtered with WHERE)
40
40
CREATE TABLE t1 ENGINE=CONNECT
41
41
TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr'
42
42
CATFUNC=Tables TABNAME='T1';
43
43
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
44
44
Table_Cat Table_Schema Table_Name Table_Type Remark
45
- MTR T1 TABLE
45
+ NULL MTR T1 TABLE NULL
46
46
DROP TABLE t1;
47
47
# Table "T1" in the schema "MTR"
48
48
CREATE TABLE t1 ENGINE=CONNECT
49
49
TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr'
50
50
CATFUNC=Tables TABNAME='MTR.T1';
51
51
SELECT * FROM t1 ORDER BY Table_Schema, Table_Name;
52
52
Table_Cat Table_Schema Table_Name Table_Type Remark
53
- MTR T1 TABLE
53
+ NULL MTR T1 TABLE NULL
54
54
DROP TABLE t1;
55
55
# All tables in the schema "MTR"
56
56
CREATE TABLE t1 ENGINE=CONNECT
57
57
TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr'
58
58
CATFUNC=Tables TABNAME='MTR.%';
59
59
SELECT * FROM t1 ORDER BY Table_Schema, Table_Name;
60
60
Table_Cat Table_Schema Table_Name Table_Type Remark
61
- MTR T1 TABLE
62
- MTR T2 TABLE
63
- MTR V1 VIEW
61
+ NULL MTR T1 TABLE NULL
62
+ NULL MTR T2 TABLE NULL
63
+ NULL MTR V1 VIEW NULL
64
64
DROP TABLE t1;
65
65
#
66
66
# Checking CATFUNC=Columns
@@ -73,10 +73,10 @@ CATFUNC=Columns;
73
73
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
74
74
Table_Cat Table_Schema Table_Name Column_Name Data_Type Type_Name Column_Size Buffer_Length Decimal_Digits Radix Nullable Remarks
75
75
MTR T1 A 3 DECIMAL 38 40 0 10 1
76
- MTR T1 B 6 NUMBER 38 40 0 0 1
77
- MTR T2 A 12 VARCHAR2 64 64 0 0 1
76
+ MTR T1 B 6 NUMBER 38 40 NULL NULL 1
77
+ MTR T2 A 12 VARCHAR2 64 64 NULL NULL 1
78
78
MTR V1 A 3 DECIMAL 38 40 0 10 1
79
- MTR V1 B 6 NUMBER 38 40 0 0 1
79
+ MTR V1 B 6 NUMBER 38 40 NULL NULL 1
80
80
DROP TABLE t1;
81
81
# All columns in all schemas (limited with WHERE)
82
82
CREATE TABLE t1 ENGINE=CONNECT
@@ -85,17 +85,17 @@ CATFUNC=Columns TABNAME='%.%';
85
85
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
86
86
Table_Cat Table_Schema Table_Name Column_Name Data_Type Type_Name Column_Size Buffer_Length Decimal_Digits Radix Nullable Remarks
87
87
MTR T1 A 3 DECIMAL 38 40 0 10 1
88
- MTR T1 B 6 NUMBER 38 40 0 0 1
89
- MTR T2 A 12 VARCHAR2 64 64 0 0 1
88
+ MTR T1 B 6 NUMBER 38 40 NULL NULL 1
89
+ MTR T2 A 12 VARCHAR2 64 64 NULL NULL 1
90
90
MTR V1 A 3 DECIMAL 38 40 0 10 1
91
- MTR V1 B 6 NUMBER 38 40 0 0 1
91
+ MTR V1 B 6 NUMBER 38 40 NULL NULL 1
92
92
DROP TABLE t1;
93
93
# All tables "T1" in all schemas (limited with WHERE)
94
94
CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr' CATFUNC=Columns TABNAME='%.T1';
95
95
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
96
96
Table_Cat Table_Schema Table_Name Column_Name Data_Type Type_Name Column_Size Buffer_Length Decimal_Digits Radix Nullable Remarks
97
97
MTR T1 A 3 DECIMAL 38 40 0 10 1
98
- MTR T1 B 6 NUMBER 38 40 0 0 1
98
+ MTR T1 B 6 NUMBER 38 40 NULL NULL 1
99
99
DROP TABLE t1;
100
100
# Table "T1" in the schema "MTR"
101
101
CREATE TABLE t1 ENGINE=CONNECT
@@ -104,7 +104,7 @@ CATFUNC=Columns TABNAME='MTR.T1';
104
104
SELECT * FROM t1 ORDER BY Table_Schema, Table_Name;
105
105
Table_Cat Table_Schema Table_Name Column_Name Data_Type Type_Name Column_Size Buffer_Length Decimal_Digits Radix Nullable Remarks
106
106
MTR T1 A 3 DECIMAL 38 40 0 10 1
107
- MTR T1 B 6 NUMBER 38 40 0 0 1
107
+ MTR T1 B 6 NUMBER 38 40 NULL NULL 1
108
108
DROP TABLE t1;
109
109
# All tables "T1" in all schemas (filtered with WHERE)
110
110
CREATE TABLE t1 ENGINE=CONNECT
@@ -113,7 +113,7 @@ CATFUNC=Columns TABNAME='%.T1';
113
113
SELECT * FROM t1 WHERE Table_Schema='MTR' ORDER BY Table_Schema, Table_Name;
114
114
Table_Cat Table_Schema Table_Name Column_Name Data_Type Type_Name Column_Size Buffer_Length Decimal_Digits Radix Nullable Remarks
115
115
MTR T1 A 3 DECIMAL 38 40 0 10 1
116
- MTR T1 B 6 NUMBER 38 40 0 0 1
116
+ MTR T1 B 6 NUMBER 38 40 NULL NULL 1
117
117
DROP TABLE t1;
118
118
#
119
119
# Checking tables
@@ -127,32 +127,32 @@ SHOW CREATE TABLE t1;
127
127
Table Create Table
128
128
t1 CREATE TABLE `t1` (
129
129
`A` decimal(40,0) DEFAULT NULL,
130
- `B` double(40,0) DEFAULT NULL
130
+ `B` double DEFAULT NULL
131
131
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr' `TABLE_TYPE`='ODBC' `TABNAME`='T1'
132
132
SELECT * FROM t1 ORDER BY A;
133
133
A B
134
134
10 1000000000
135
135
20 1000000000000
136
- 30 1000000000000000
136
+ 30 1e15
137
137
CREATE TABLE t2 AS SELECT * FROM t1;
138
138
SHOW CREATE TABLE t2;
139
139
Table Create Table
140
140
t2 CREATE TABLE `t2` (
141
141
`A` decimal(40,0) DEFAULT NULL,
142
- `B` double(40,0) DEFAULT NULL
142
+ `B` double DEFAULT NULL
143
143
) ENGINE=MyISAM DEFAULT CHARSET=latin1
144
144
SELECT * FROM t2;
145
145
A B
146
146
10 1000000000
147
147
20 1000000000000
148
- 30 1000000000000000
148
+ 30 1e15
149
149
DROP TABLE t2;
150
150
CREATE VIEW v1 AS SELECT * FROM t1;
151
151
SELECT * FROM v1;
152
152
A B
153
153
10 1000000000
154
154
20 1000000000000
155
- 30 1000000000000000
155
+ 30 1e15
156
156
DROP VIEW v1;
157
157
DROP TABLE t1;
158
158
# Table "T1" in the schema "MTR"
@@ -163,13 +163,13 @@ SHOW CREATE TABLE t1;
163
163
Table Create Table
164
164
t1 CREATE TABLE `t1` (
165
165
`A` decimal(40,0) DEFAULT NULL,
166
- `B` double(40,0) DEFAULT NULL
166
+ `B` double DEFAULT NULL
167
167
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr' `TABLE_TYPE`='ODBC' `TABNAME`='MTR.T1'
168
168
SELECT * FROM t1;
169
169
A B
170
170
10 1000000000
171
171
20 1000000000000
172
- 30 1000000000000000
172
+ 30 1e15
173
173
DROP TABLE t1;
174
174
# View "V1" in the schema "MTR"
175
175
CREATE TABLE t1 ENGINE=CONNECT
@@ -179,32 +179,32 @@ SHOW CREATE TABLE t1;
179
179
Table Create Table
180
180
t1 CREATE TABLE `t1` (
181
181
`A` decimal(40,0) DEFAULT NULL,
182
- `B` double(40,0) DEFAULT NULL
182
+ `B` double DEFAULT NULL
183
183
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='DSN=ConnectEngineOracle;UID=mtr;PWD=mtr' `TABLE_TYPE`='ODBC' `TABNAME`='MTR.V1'
184
184
SELECT * FROM t1;
185
185
A B
186
186
10 1000000000
187
187
20 1000000000000
188
- 30 1000000000000000
188
+ 30 1e15
189
189
CREATE TABLE t2 AS SELECT * FROM t1;
190
190
SHOW CREATE TABLE t2;
191
191
Table Create Table
192
192
t2 CREATE TABLE `t2` (
193
193
`A` decimal(40,0) DEFAULT NULL,
194
- `B` double(40,0) DEFAULT NULL
194
+ `B` double DEFAULT NULL
195
195
) ENGINE=MyISAM DEFAULT CHARSET=latin1
196
196
SELECT * FROM t2;
197
197
A B
198
198
10 1000000000
199
199
20 1000000000000
200
- 30 1000000000000000
200
+ 30 1e15
201
201
DROP TABLE t2;
202
202
CREATE VIEW v1 AS SELECT * FROM t1;
203
203
SELECT * FROM v1;
204
204
A B
205
205
10 1000000000
206
206
20 1000000000000
207
- 30 1000000000000000
207
+ 30 1e15
208
208
DROP VIEW v1;
209
209
DROP TABLE t1;
210
210
# Table "T2" in the schema "MTR"
0 commit comments