1、编写命令脚本(.ctl格式)
LOAD DATA
INFILE ‘需导入的数据路径‘
APPEND INTO TABLE USER_COST
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(
字段名,
字段名,
...
)
2、在dos窗口输入:sqlldr 用户/密码 control=脚本路径
例如:sqlldr dm/dm control=C:\Users\Administrator\Desktop\test\user_info.ctl
原文地址:https://www.cnblogs.com/zhaoquanmo/p/10649646.html
时间: 2024-11-09 03:47:23