当前位置:网站首页>Oracle-sqlload import external data details
Oracle-sqlload import external data details
2022-06-25 03:47:00 【Diving rice awn】
1.cmd Control side syntax
sqlldr userid= Database connection control= Control documents log=/tmp/test.log data=/tmp/test.csv rows=10
userid – Oracle Of username/password[@servicename]
control – Control documents , May contain table data
log – Record the log file at the time of import , The default is Control documents ( Remove the extension ).log
bad – Bad data files , The default is Control documents ( Remove the extension ).bad
data – Data files , It is generally specified in the control file . It is more suitable for automatic operation to control files with parameters without specifying data files
errors – Number of error records allowed , You can use him to control a record. You can't be wrong
rows – How many records are submitted once , The default is 64
skip – Number of lines skipped , For example, the first few lines of the exported data file are headers or other descriptions
eg:sqlldr user name / password @ Database name control=control.ctl data=T.txt log=filename.log
2. Control documents
- insert -- By default , The table is required to be empty at the beginning of the data load
- append -- Appends a new record to the table
- replace -- Delete old records ( use delete from table sentence ), Replace with a newly loaded record
- truncate -- Delete old records ( use truncate table sentence ), Replace with a newly loaded record
load data
infile ‘ File path to import ’
append into table Table name
FIELDS TERMINATED BY whitespace // Each line of data is recorded with Space Separate
trailing nullcols // It is allowed to be empty when the field of the table has no corresponding value
(
Field 1,
Field 2
)
eg:load data
infile ‘F:\T.txt’
append into table yangzh_owefee
FIELDS TERMINATED BY whitespace
trailing nullcols
(
USER_ID,
CONTRACT_NO,
deal_date,
owe_fee
)
边栏推荐
- 俄罗斯AIRI研究院等 | SEMA:利用深度迁移学习进行抗原B细胞构象表征预测
- 中国天眼发现地外文明可疑信号,马斯克称星舰7月开始轨道试飞,网信办:APP不得强制要求用户同意处理个人信息,今日更多大新闻在此...
- Rebeco: using machine learning to predict stock crash risk
- 在华泰证券上面开股票账户好不好,安不安全?
- Internet Explorer died, and netizens started to build a true tombstone
- What if Alipay is controlled by risk for 7 days? Payment solution
- 什么是SSL证书,拥有一个SSL证书有什么好处?
- Is flush a regular platform? Is it safe for flush to open an account
- 力扣每日一题-第26天-506.相对名次
- Amazon's other side in China
猜你喜欢

陆奇首次出手投资量子计算

The era of copilot free is over! Student party and defenders of popular open source projects can prostitute for nothing

协作+安全+存储,云盒子助力深圳爱德泰重构数据中心

马斯克:推特要学习微信,让10亿人「活在上面」成为超级APP

后台页制作01《ivx低代码签到系统制作》

Insurance app aging service evaluation analysis 2022 issue 06

TCC mode explanation and code implementation of Seata's four modes

Randla net: efficient semantic segmentation of large scale point clouds

居家办公之后才明白的时间管理 | 社区征文

老叶的祝福
随机推荐
Tianshu night reading notes - 8.4 diskperf disassembly
网上开户股票安全吗?怎么开户呢?
力扣每日一题-第26天-506.相对名次
Tai Chi graphics 60 lines of code to achieve classic papers, 0.7 seconds to get Poisson disk sampling, 100 times faster than numpy
亚马逊在中国的另一面
Li Kou daily question - day 26 -506 Relative rank
一文搞懂php中的(DI)依赖注入
Apple's legendary design team disbanded after jobs refused to obey cook
Redis related-02
Is it safe to open an account online? How to open an account?
Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award
用指南针开户如何选择证券公司?哪一个是更安全的
ICML 2022 | ByteDance AI Lab proposes a multimodal model: x-vlm, learning multi granularity alignment of vision and language
Insurance app aging service evaluation analysis 2022 issue 06
The programmer reality show is coming again! Hulan, as the host, carried the lamp to fill the knowledge. The SSS boss had a bachelor's degree in pharmacy. Zhu Jun and Zhang Min from Tsinghua joined th
MySql安裝教程
Standing at the center of the storm: how to change the engine of Tencent
Two way combination of business and technology to build a bank data security management system
[proteus simulation] Arduino uno+ relay controls lighting equipment
居家办公之后才明白的时间管理 | 社区征文