当前位置:网站首页>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
)
边栏推荐
- Apple's legendary design team disbanded after jobs refused to obey cook
- 同花顺证券开户安全吗
- 存算一体芯片离普及还有多远?听听从业者怎么说 | 对撞派 x 后摩智能
- AI自己写代码让智能体进化!OpenAI的大模型有“人类思想”那味了
- DateTimeFormat放到@RequestBody下是无效的
- Huawei failed to appeal and was prohibited from selling 5g equipment in Sweden; Apple regained the first place in the world in terms of market value; DeNO completes round a financing of USD 21million
- Tai Chi graphics 60 lines of code to achieve classic papers, 0.7 seconds to get Poisson disk sampling, 100 times faster than numpy
- 做自媒体不知道怎样变现?7大变现方法分享
- 跨境电商新手如何防止店铺关联?用什么工具好?
- Sorting of poor cattle (winter vacation daily question 40)
猜你喜欢

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

你真的需要自动化测试吗?

香蕉为什么能做随机数生成器?因为,它是水果界的“辐射之王”

Two way combination of business and technology to build a bank data security management system

完美洗牌问题

Why can banana be a random number generator? Because it is the "king of radiation" in the fruit industry

Randla net: efficient semantic segmentation of large scale point clouds

zabbix的安装避坑指南

威马招股书拆解:电动竞争已结束,智能排位赛刚开始

2点睡10点起不算熬夜?除非你每天都能执行
随机推荐
威马招股书拆解:电动竞争已结束,智能排位赛刚开始
PHP uses getid3 to obtain the duration of MP3, MP4, WAV and other media files
The more AI evolves, the more it resembles the human brain! Meta found the "prefrontal cortex" of the machine. AI scholars and neuroscientists were surprised
Three key explanations of overseas e-commerce operation in 2022
About sizeof() and strlen in array
老叶的祝福
Wechat development related
跨境电商新手如何防止店铺关联?用什么工具好?
华为上诉失败,被禁止在瑞典销售 5G 设备;苹果公司市值重获全球第一;Deno 完成 2100 万美元 A 轮融资|极客头条
CVPR大会现场纪念孙剑博士,最佳学生论文授予同济阿里,李飞飞获黄煦涛纪念奖...
Tai Chi graphics 60 lines of code to achieve classic papers, 0.7 seconds to get Poisson disk sampling, 100 times faster than numpy
How far is the memory computing integrated chip from popularization? Listen to what practitioners say | collision school x post friction intelligence
Is it safe to open an online stock account?
Demonstration of combination of dream CAD cloud map and GIS
Winxp kernel driver debugging
论一个优秀红队人员的自我修养
后台页制作01《ivx低代码签到系统制作》
[proteus simulation] Arduino uno+ relay controls lighting equipment
Redis related-02
AI越进化越跟人类大脑像!Meta找到了机器的“前额叶皮层”,AI学者和神经科学家都惊了...