ここに私の制御ファイルがあります
load data
infile ’sample3.dat’ “str ‘”
into table example
fields terminated by ‘,’ optionally enclosed by ‘"’
(item char(10),
destination char(2))
上記の例のデフォルトの区切り文字を誰か教えてもらえますか?
ここに私の制御ファイルがあります
load data
infile ’sample3.dat’ “str ‘”
into table example
fields terminated by ‘,’ optionally enclosed by ‘"’
(item char(10),
destination char(2))
上記の例のデフォルトの区切り文字を誰か教えてもらえますか?
レコード区切り文字はデフォルトで \n ですが、次の例のように変更できます。
load data
infile ’sample3.dat’ “str ‘*\n”
into table example
fields terminated by ‘,’ optionally enclosed by ‘"’
(item char(10), destination char(2))
この場合、*\n のレコード区切り文字なので、データは次のようになります。
Item 1,London*
Item 2,Multi
line*