当前位置:网站首页>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
)
边栏推荐
- Datetimeformat is invalid under @requestbody
- Copilot免费时代结束!正式版67元/月,学生党和热门开源项目维护者可白嫖
- 【Rust投稿】从零实现消息中间件(6)-CLIENT
- TensorFlow,危!抛弃者正是谷歌自己
- 网上开户股票安全吗?怎么开户呢?
- 同花顺证券开户安全吗
- Sorting of poor cattle (winter vacation daily question 40)
- redis
- 协作+安全+存储,云盒子助力深圳爱德泰重构数据中心
- Google founder brin's second marriage broke up: it was revealed that he had filed for divorce from his Chinese wife in January, and his current fortune is $631.4 billion
猜你喜欢

Collaboration + Security + storage, cloud box helps Shenzhen edetai restructure its data center

Redis related-01

孙武玩《魔兽》?有图有真相

腾讯开源项目「应龙」成Apache顶级项目:前身长期服务微信支付,能hold住百万亿级数据流处理...

1-6 build win7 virtual machine environment

Rebeco: using machine learning to predict stock crash risk

Copilot免费时代结束!正式版67元/月,学生党和热门开源项目维护者可白嫖

The sign in function completes 03 "IVX low code sign in system production"

現在,耳朵也要進入元宇宙了

Tutoriel d'installation MySQL
随机推荐
zabbix的安装避坑指南
腾讯开源项目「应龙」成Apache顶级项目:前身长期服务微信支付,能hold住百万亿级数据流处理...
Standing at the center of the storm: how to change the engine of Tencent
Sorting of poor cattle (winter vacation daily question 40)
Tensorflow, danger! Google itself is the one who abandoned it
Eggservice builds the basic service of wechat official account
Why can banana be a random number generator? Because it is the "king of radiation" in the fruit industry
Svn deployment
程序员真人秀又来了!呼兰当主持挑灯狂补知识,SSS大佬本科竟是药学,清华朱军张敏等加入导师团...
PHP uses getid3 to obtain the duration of MP3, MP4, WAV and other media files
Xidian AI ranked higher than Qingbei in terms of AI majors, and Nantah ranked the first in China in 2022 in terms of soft science majors
服乔布斯不服库克,苹果传奇设计团队解散内幕曝光
Is it safe to open an account on your mobile phone?
[proteus simulation] Arduino uno+ nixie tube display 4X4 keyboard matrix keys
Lao Ye's blessing
跨境电商新手如何防止店铺关联?用什么工具好?
How can novices of cross-border e-commerce prevent store association? What tool is good?
俄罗斯AIRI研究院等 | SEMA:利用深度迁移学习进行抗原B细胞构象表征预测
可能是拿反了的原因
Musk: Twitter should learn from wechat and make 1billion people "live on it" into a super app