1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SQL*LoaderでCSVファイルの1フィールドを複数カラムにマップする方法。

Posted at

はじめに

ORACLE SQLLoaderを利用して、CSVファイルの1フィールド(1データ)を
テーブルの複数カラムにマップする方法がわからなかったので、調べてみました。
SQL
loaderの制御ファイルで以下のように記述することで実現できることを確認しました。
ちなみに動作確認で使用したORACLEのバーションは「11.2」です。

・CSVファイルのデータ2行(ファイル名:test_load1.txt、改行コード:CRLF)

1.png

・ロード先のテスト用テーブル作成

2.png

・SQL*Loader制御ファイルの記述例(test_load.ctl)

3.png

・SQL*Loaderの実行と結果表示

4.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?