文字檔案用sqlldr工具匯入到oracel資料庫中
1.文字檔案student資料如下
1001,李三,90
1002,王五,87
1002,李四,86
2.在oracle資料庫中scott使用者建立表student表
create table student (id int ,name varchar2(20),grade int);
3.編寫sqlldr控制檔案student.ctl
load data
infile 'e:\student.txt'
into table student
fields terminated by ','
(
id,
name,
grade
)
4.匯入資料
C:\>sqlldr scott/tiger control=e:\student.ctl log=e:\log.log
1001,李三,90
1002,王五,87
1002,李四,86
2.在oracle資料庫中scott使用者建立表student表
create table student (id int ,name varchar2(20),grade int);
3.編寫sqlldr控制檔案student.ctl
load data
infile 'e:\student.txt'
into table student
fields terminated by ','
(
id,
name,
grade
)
4.匯入資料
C:\>sqlldr scott/tiger control=e:\student.ctl log=e:\log.log
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26937943/viewspace-2123695/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 大文字資料,匯入匯出到資料庫資料庫
- GeoRapter工具將shapefile資料匯入到Oracle空間資料庫中APTOracle資料庫
- 從cmd中匯入.SQL檔案並建立資料庫SQL資料庫
- 教你如何將二進位制檔案匯入到資料庫資料庫
- SQLSERVER匯出TXT文字檔案,ORACLE SQL LOADER匯入TXT文字檔案SQLServerOracle
- .sql檔案匯入到sql server中SQLServer
- 匯入excel資源到資料庫Excel資料庫
- [Docker核心之容器、資料庫檔案的匯入匯出、容器映象的匯入匯出]Docker資料庫
- java 從EXCEL匯入到資料庫JavaExcel資料庫
- Flume:資料匯入到hdfs中
- python將目標檢測資料匯入到指定資料庫中Python資料庫
- Mysql資料庫使用Navicat Mysql匯入sql檔案報錯MySql資料庫
- 將 crt 檔案匯入到 jks 檔案 -cg
- 如何將外部資料庫 匯入到系統的SQL中資料庫SQL
- 將csv檔案匯入到neo4j中
- 將資料庫中資料匯入至solr索引庫資料庫Solr索引
- oracl 資料庫 sqlplus 匯出資料為sql檔案資料庫SQL
- 資料庫 MySQL 資料匯入匯出資料庫MySql
- IIS 日誌匯入到資料庫的方法資料庫
- mysql資料庫匯入sql檔案一直提示不成功MySql資料庫
- Sqoop將MySQL資料匯入到hive中OOPMySqlHive
- python——將excel檔案寫入mysql資料庫中PythonExcelMySql資料庫
- gis pro中將shp檔案轉為/匯入地理資料庫有什麼好處?資料庫
- php讀取excel檔案資料的匯入和匯出PHPExcel
- Angular 專案中匯入 styles 檔案到 Component 中的一些技巧Angular
- Oracle OCP(55):SQLLDR—CTL檔案OracleSQL
- 淺析圖資料庫 Nebula Graph 資料匯入工具——Spark Writer資料庫Spark
- 向mysql中匯入.sql檔案MySql
- Mysql 資料庫匯入與匯出MySql資料庫
- Mysql 大資料表 資料匯入到SqlServer 中的方法MySql大資料Server
- Net.Core匯入EXCel檔案裡的資料Excel
- java程式碼實現excel檔案資料匯入JavaExcel
- python如何將資料寫入本地txt文字檔案Python
- Access 匯入 oracle 資料庫Oracle資料庫
- excel 匯入sqlyog資料庫ExcelSQL資料庫
- SQL資料庫的匯入和匯出SQL資料庫
- 匯入excel檔案Excel
- SpringBoot+Mybatis-plus整合easyExcel批次匯入Excel到資料庫+匯出ExcelSpring BootMyBatisExcel資料庫
- 使用SELECT…INTO OUTFILE匯出文字檔案