Control file
The control file.
The second field is specified as
integer external. This means, that the numbers in the dat file are human readable rather than »real« bytes (in
IEEE 754 floating point format).
load data
infile 'load_2.dat' "str '\r\n'"
insert
into table tq84_sql_loader_2
fields terminated by ','
(
field_1 char,
field_2 integer external
)
The data
The name of this data file is specified with the infile statement in the control file.
one,1
two,2
fifty,50
eighty-eight,88
one hundred,100
fifteen,15