Oracle: Import CSV file(Oracle:导入 CSV 文件)
问题描述
我已经搜索了一段时间,但似乎无法找到答案,所以这里...
I've been searching for a while now but can't seem to find answers so here goes...
我有一个 CSV 文件,我想将其导入到 Oracle (9i/10i) 中的表中.
I've got a CSV file that I want to import into a table in Oracle (9i/10i).
稍后我打算将此表用作其他用途的查找.
Later on I plan to use this table as a lookup for another use.
这实际上是我正在研究的一种解决方法,因为不可能使用包含超过 1000 个值的 IN 子句进行查询.
This is actually a workaround I'm working on since the fact that querying using the IN clause with more that 1000 values is not possible.
这是如何使用 SQLPLUS 完成的?
How is this done using SQLPLUS?
感谢您的时间!:)
推荐答案
SQL Loader 帮助将 csv 文件加载到表中:SQL*Loader
SQL Loader helps load csv files into tables: SQL*Loader
如果你只想要 sqlplus,那么它会变得有点复杂.您需要找到 sqlloader 脚本和 csv 文件,然后运行 sqlldr 命令.
If you want sqlplus only, then it gets a bit complicated. You need to locate your sqlloader script and csv file, then run the sqlldr command.
这篇关于Oracle:导入 CSV 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Oracle:导入 CSV 文件
基础教程推荐
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 无法解决整理冲突 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
