如何用exp导出表中部份记录?
比如只导出 符合条件的数据记录?

解决方案 »

  1.   

    用pl/sql工具导出数据 里边有个where clause 输入查询条件
      

  2.   

    exp system/sys tables=jobs query=\"where job_id=\st_man\" file=d:/sc.dmp grants=y
      

  3.   

    tools->export tables->sql inserts
      

  4.   

    exp system/sys tables=jobs query=\"where job_id=\st_man\" file=d:/sc.dmp grants=y
    这句执行不了,
    只能是exp后,按提示一步一步地操作,我现在能导入导出了,
    但是这种方式(按提示)按条件如何导出呢?
      

  5.   

    exp user/pwd@sid file=d:\file.dmp  tables=tablesname query=\"where 条件\"
      

  6.   

    直接exp system/sys tables=jobs query=\"where job_id=\st_man\" file=d:/sc.dmp grants=y
    这句执行不了,只能是exp后,按提示一步一步地操作,我现在能导入导出了,
    但是这种方式(按提示)按条件如何导出呢?
      

  7.   

    exp system/manager @Test file=d:\daochu.dmp tables=(table1) query=\"where 条件"
      

  8.   

    直接exp system/sys tables=jobs query=\"where job_id=\st_man\" file=d:/sc.dmp grants=y
    这句执行不了,只能是exp后,按提示一步一步地操作,我现在能导入导出了,
    但是这种方式(按提示)按条件如何导出呢?
    错的语句肯定执行不了了。。
      

  9.   

    ljxsea(春雷):直接写 哪错了?exp system/sys tables=jobs query=\"where job_id=\st_man\" file=d:/sc.dmp grants=y
      

  10.   

    exp system/sys tables=jobs query="""where job_id='st_man'""" file='d:/sc.dmp' grants=y
      

  11.   

    C:\>exp yst/yst file=d:\file.dmp tables=yst_zy query=\"where zyid=0001\" grants=
    yExport: Release 8.1.7.0.0 - Production on 星期五 6月 22 15:26:03 2007(c) Copyright 2000 Oracle Corporation.  All rights reserved.
    连接到: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    已导出 ZHS16GBK 字符集和 ZHS16GBK NCHAR 字符集即将导出指定的表通过常规路径 ...
    . . 正在导出表                          YST_ZY          1 行被导出
    在没有警告的情况下成功终止导出。
    查询条件写错了..
    query=\"where job_id=st_man\"