码迷,mamicode.com
首页 > 数据库 > 详细

oracle 导入txt

时间:2014-09-05 15:54:41      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:文件   cti   on   c   ad   sql   oracle   file   table   

没有Oraclehoume的情况下,执行下环境变量文件

sqlldr userid= DM/DM control = /home/oracle/libc/load.ctl

load data
infile ‘/home/oracle/libc/data.txt‘
insert into table tmp_dm_user_total_month
fields terminated by ‘\t‘
(
acct_date ,
provincecode ,
citycode ,
product_id ,
total_user_sendmail ,
total_sendmail ,
web_user_sendmail_num ,
pc_user_sendmail_num ,
pc_user_recmail_num ,
wap_user_sendmail_num ,
mobile_user_sendmail_num ,
web_sendmail_num ,
pc_sendmail_num ,
pc_recmail_num ,
wap_sendmail_num ,
mobile_sendmail_num ,
totoal_user_m ,
totoal_user_lm ,
active_user_m ,
active_user_lm ,
web_active_user_m ,
web_active_user_lm ,
pc_active_user_m ,
pc_active_user_lm ,
wap_active_user_m ,
wap_active_user_lm ,
mobile_active_user_m ,
mobile_active_user_lm ,
sso_active_user_m ,
sso_active_user_lm ,
register_users ,
unregister_users
)

oracle 导入txt

标签:文件   cti   on   c   ad   sql   oracle   file   table   

原文地址:http://www.cnblogs.com/charlie-badegg/p/3957952.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!