質問編集履歴
4
外部表追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -206,6 +206,70 @@
|
|
206
206
|
|
207
207
|
|
208
208
|
|
209
|
+
◆外部表
|
210
|
+
|
211
|
+
CREATE TABLE NEW_DATA (
|
212
|
+
|
213
|
+
ID_NO NUMBER(20,9),
|
214
|
+
|
215
|
+
COM VARCHAR2(6),
|
216
|
+
|
217
|
+
DUMMY_DATE VARCHAR2(8),
|
218
|
+
|
219
|
+
EMPL_CODE VARCHAR2(20),
|
220
|
+
|
221
|
+
EMPL_NAME VARCHAR2(200)
|
222
|
+
|
223
|
+
)
|
224
|
+
|
225
|
+
ORGANIZATION EXTERNAL (
|
226
|
+
|
227
|
+
TYPE ORACLE_LOADER
|
228
|
+
|
229
|
+
DEFAULT DIRECTORY DUMM_DIR
|
230
|
+
|
231
|
+
ACCESS PARAMETERS (
|
232
|
+
|
233
|
+
RECORDS DELIMITED BY NEWLINE
|
234
|
+
|
235
|
+
READSIZE 1048576
|
236
|
+
|
237
|
+
DATE_CACHE 1000
|
238
|
+
|
239
|
+
CHARACTERSET AL32UTF8
|
240
|
+
|
241
|
+
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
|
242
|
+
|
243
|
+
(
|
244
|
+
|
245
|
+
ID_NO,
|
246
|
+
|
247
|
+
COM,
|
248
|
+
|
249
|
+
DUMMY_DATE,
|
250
|
+
|
251
|
+
EMPL_CODE,
|
252
|
+
|
253
|
+
EMPL_NAME
|
254
|
+
|
255
|
+
)
|
256
|
+
|
257
|
+
)
|
258
|
+
|
259
|
+
LOCATION (
|
260
|
+
|
261
|
+
'test.csv'
|
262
|
+
|
263
|
+
)
|
264
|
+
|
265
|
+
)
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
209
273
|
```
|
210
274
|
|
211
275
|
|
3
CREATE TABLE 追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
PL/SQLコード
|
25
|
+
◆PL/SQLコード
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -168,6 +168,44 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
|
171
|
+
◆テーブルCREATE一部
|
172
|
+
|
173
|
+
EMP_NAMEにベトナム文字が入ります。
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
CREATE TABLE TEST_TABLE
|
178
|
+
|
179
|
+
(
|
180
|
+
|
181
|
+
NO NUMBER(20,9),
|
182
|
+
|
183
|
+
COM VARCHAR2(6),
|
184
|
+
|
185
|
+
DUMMY_DATE VARCHAR2(8),
|
186
|
+
|
187
|
+
EMP_CODE VARCHAR2(20),
|
188
|
+
|
189
|
+
EMP_NAME VARCHAR2(200)
|
190
|
+
|
191
|
+
)
|
192
|
+
|
193
|
+
PCTFREE 10
|
194
|
+
|
195
|
+
MAXTRANS 255
|
196
|
+
|
197
|
+
TABLESPACE AA
|
198
|
+
|
199
|
+
STORAGE(INITIAL 4M NEXT 4M MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT)
|
200
|
+
|
201
|
+
NOCACHE
|
202
|
+
|
203
|
+
LOGGING
|
204
|
+
|
205
|
+
/
|
206
|
+
|
207
|
+
|
208
|
+
|
171
209
|
```
|
172
210
|
|
173
211
|
|
2
ソースにコードを設定
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,13 +20,13 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
|
23
|
+
|
24
|
-
|
24
|
+
|
25
|
-
PL/SQL
|
25
|
+
PL/SQLコード
|
26
|
-
|
27
|
-
|
26
|
+
|
28
|
-
|
27
|
+
|
28
|
+
|
29
|
-
|
29
|
+
PROCEDURE insert_table
|
30
30
|
|
31
31
|
IS
|
32
32
|
|
@@ -168,6 +168,8 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
|
171
|
+
```
|
172
|
+
|
171
173
|
|
172
174
|
|
173
175
|
### 試したこと
|
1
INSERTテーブル名変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
--登録
|
110
110
|
|
111
|
-
INSERT INTO
|
111
|
+
INSERT INTO NEW_DATA
|
112
112
|
|
113
113
|
(
|
114
114
|
|