1.写控制文件格式如下(下面是我自己的,你把表名该成你自己的表,字段该成你的字段就可以了): load data INFILE "D:\\user_user_test.txt" into table USER_USER_TEST truncate fields terminated by ',' optionally enclosed by '"' ( USERID, CITYID, USERNAME, PWD, CREATETIME ) 2.把控制文件和数据文件放在同一个目录(建议) 3.执行sqlldr userid=scott/anwei@orcl control="D:\ceshi\user_user_test.ctl" log=D:\ceshi\user_user_test.log bad=d:\ceshi\bad.log 命令
oracle导入txt数据文件--sql语句
最新推荐文章于 2024-03-05 19:44:13 发布