if table user varchar2, load file need use char
command: sqlldr userid=ora_id/ora_passwd control=control_file_name.ctl
LOAD DATA
INFILE *
INTO TABLE image_table
REPLACE
FIELDS TERMINATED BY ','
(
image_id INTEGER(5),
file_name CHAR(30),
image_data LOBFILE (file_name) TERMINATED BY EOF
)
BEGINDATA
001,image1.gif
002,image2.jpg
003,image3.jpg
No comments:
Post a Comment