例子:

exp buffer=4096 log=e:\ic10.log file=e:\ic10.dmp query='where aab001=''13040100706''' tables=(ic10)

QUERY

Default: none

This parameter enables you to select a subset of rows from a set of tables when doing a table mode export. The value of the query parameter is a string that contains a WHERE clause for a SQL SELECT statement that will be applied to all tables (or table partitions) listed in the TABLE parameter.

For example, if user scott wants to export only those employees whose job title is SALESMAN and whose salary is less than 1600, he could do the following (this example is UNIX-based):

exp scott/tiger TABLES=emp QUERY=\"WHERE job=\'SALESMAN\' and sal \<1600\"

Note:

Because the value of the QUERY parameter contains blanks, most operating systems require that the entire strings WHERE job=\'SALESMAN\' and sal\<1600 be placed in double quotation marks or marked as a literal by some method. Operating system reserved characters also need to be preceded by an escape character. See your Oracle operating system-specific documentation for information about special and reserved characters on your system.

When executing this query, Export builds a SQL SELECT statement similar to the following:

SELECT * FROM emp WHERE job='SALESMAN' and sal <1600;

The values specified for the QUERY parameter are applied to all tables (or table partitions) listed in the TABLE parameter. For example, the following statement will unload rows in both emp and bonus that match the query:

exp scott/tiger TABLES=emp,bonus QUERY=\"WHERE job=\'SALESMAN\' and sal\<1600\"

Again, the SQL statements that Export executes are similar to the following:

SELECT * FROM emp WHERE job='SALESMAN' and sal <1600;

SELECT * FROM bonus WHERE job='SALESMAN' and sal <1600;

If a table is missing the columns specified in the QUERY clause, an error message will be produced, and no rows will be exported for the offending table.

Restrictions When Using the QUERY Parameter

The QUERY parameter cannot be specified for full, user, or tablespace-mode exports.

The QUERY parameter must be applicable to all specified tables.

The QUERY parameter cannot be specified in a direct path Export (DIRECT=y)

The QUERY parameter cannot be specified for tables with inner nested tables.

You cannot determine from the contents of the export file whether the data is the result of a QUERY export.

linux导出表数据dmp,导出表的部分数据到dmp文件中相关推荐

  1. 从文件中读取数据,排序之后输出到另一个文件中

    文件中有一组数据,要求排序后输出到另一个文件中去 主要有两个知识点: 排序.文件操作 C++/C代码如下: [cpp] view plaincopy #include<iostream> ...

  2. .net 从txt中读取行数据_【VBA项目】从指定文件中读取数据并绘制图表

    VBA 是一种很久远的编程语言,但并不过时.在满足以下两个条件时,借助 VBA 可以极大的提升生产率,降低出错率: 你的电脑上不允许自主安装软件: 你需要执行的工作中大部分的步骤都是固定且重复的. 项 ...

  3. python从html拿到数据,python - 使用BeautifulSoup和Python从HTML文件中提取数据 - 堆栈内存溢出...

    我需要提取的数据可以在不同的标题下找到. 这是我到目前为止: from BeautifulSoup import BeautifulSoup ecj_data = open("data\ec ...

  4. Linux sudo命令报错:用户不在sudoers文件中

    Linux普通用户如果需要使用sudo以暂时获取root权限,需要在/etc/sudoers文件中添加用户的权限配置,具体步骤如下(以CentOS 7.2示例): 例如:以test用户获取sudo权限 ...

  5. c# 把DataTable中数据批量导入新的sqlite的db文件中

    需求 : 使用sqlite数据库, 将文件A.db 中某张数据表的数据,备份到文件B.db中. 解决方案: 使用dataTableUpdate.不推荐 可以使用事务进行批量处理. 目的: 避免手动拼接 ...

  6. Java读取Excel文件数据并将记录写入到新的文件中--POI技术实现

    1. apache poi包里有4个主要的类: Workbook----工作表,通过WorkbookFactory的create(FileInputStream fis)方法获取, Sheet---- ...

  7. c语言读取txt文件数据乱码,编的学生成绩管理系统 从文件中读取保存数据总会多读入一组乱码数据...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 getch(); return L; } } void SearchData(Stu L) { Stu p; int num; p=L->next; ...

  8. 【大数据教程】MapReduce基本架构、统计文件中每个字符出现的次数,IP去重、计算每个人的最高分,总分

    文章目录 概述 案例 Mapper类 继承Mapper类 重写`map()`方法 Reducer类 继承Reducer 重写`reduce()`方法 Driver类 结果 练习 单词统计 Mapper ...

  9. c语言管理系统的数据存放,编的学生成绩管理系统 从文件中读取保存数据总会多读入一组乱码数据...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 getch(); return L; } } void SearchData(Stu L) { Stu p; int num; p=L->next; ...

  10. 李炎恢 ComboGrid(数据表格下拉框):读取Json文件中的数据

    1.新建JsData文件夹中添加content.json文件.内容如下: [  {   "id" : 1,   "user" : "蜡笔小新" ...

最新文章

  1. 自动驾驶LiDAR点云深度学习综述
  2. Yii AR Model CRUD数据库操作
  3. mysql的复合类型_PLSQL 复合类型数据
  4. 电脑桌面的东西突然不显示了
  5. CISSP的成长之路(九):复习信息安全管理(3)
  6. 通过MicroProfile上下文传播增强了CDI上下文和隔板
  7. UDT源码剖析(四):UDT的GC线程相关过程代码注释
  8. 20155207王雪纯 《Java程序设计》实验一报告
  9. Java: 使用proxy连接URL
  10. koa2 仿知乎笔记
  11. 【Python3爬虫】当爬虫碰到表单提交,有点意思
  12. 编写程序销毁一个单链表
  13. Java 案例大全(详细)一
  14. 【特效】UE4 Niagara 制作爆炸特效
  15. FFMPEG之海康实时回调出来的PS流格式
  16. QT写的U盘批量复制小工具
  17. 自动注册gmail邮箱构想
  18. VsCode超实用插件推荐,让你的开发效率火力全开
  19. ABP理论学习之数据过滤器
  20. 使用spacedesk实现两台笔记本的双屏显示

热门文章

  1. Spark源码分析:多种部署方式之间的区别与联系
  2. MongoDB数据库操作---终端操作
  3. Nodejs服务器端处理POST提交的数据_note
  4. 使用嵌套循环,打印 5 行 5 列的直角三角形
  5. centos7全盘备份到本地_CentOS7 系统盘迁移案例【大硬盘迁移到小硬盘,新思路】...
  6. python的ols_【量化工具】OLS在python中的四种实现方式
  7. W10系统matlab无法保存对该路径的更改 pathdef_MATLAB的运行与窗口介绍
  8. Python--print用法汇总
  9. 华为智慧屏鸿蒙挂安卓9,荣耀先行!华为智慧屏9月发布:搭鸿蒙系统和自研芯片...
  10. java okhttp3 工具类,Retrofit+okhttp+Rxjava网络请求工具类