我用exp user/pwd@name tables=(aaa) file=a.dmp query=id>0想导出aaa表中id>0的记录,但通不过,谢谢

解决方案 »

  1.   

    exp user/pwd@name tables=aaa file=a.dmp query='id>0'
      

  2.   

    exp user/pwd@name tables=(aaa) file=a.dmp query=(SELECT * FROM AAA WHERE id > 0)
      

  3.   

    Sorry,更正:
    exp user/pwd@name tables=(aaa) file=a.dmp query=\"where id>0\"
      

  4.   

    exp c/pd@CRM tables=(a) file=\var\a.bak  query=\"where id=2\"我的可以通过的,试试
      

  5.   

    exp scott/liq tables=(EMP) FILE='d:\1.dmp' query="""where sal>1000"""
    exp scott/liq tables=(EMP) FILE='d:\1.dmp' query=\"where sal>5000\"都可以的~
    C:\>exp scott/liq tables=(EMP) FILE='d:\1.dmp' query="""where sal>1000"""Export: Release 10.1.0.3.0 - Production on 星期五 1月 21 17:51:15 2005Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export done in ZHS16GBK character set and AL16UTF16 NCHAR character setAbout to export specified tables via Conventional Path ...
    . . exporting table                            EMP         12 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.C:\>exp scott/liq tables=(EMP) FILE='d:\1.dmp' query=\"where sal>5000\"Export: Release 10.1.0.3.0 - Production on 星期五 1月 21 17:51:56 2005Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export done in ZHS16GBK character set and AL16UTF16 NCHAR character setAbout to export specified tables via Conventional Path ...
    . . exporting table                            EMP          0 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.C:\>exp scott/liq tables=(EMP) FILE='d:\1.dmp' query=\"where sal>500\"Export: Release 10.1.0.3.0 - Production on 星期五 1月 21 17:52:20 2005Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export done in ZHS16GBK character set and AL16UTF16 NCHAR character setAbout to export specified tables via Conventional Path ...
    . . exporting table                            EMP         14 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.C:\>
      

  6.   

    就用 scott.emp 为例吧
    exp scott/tiger TABLES=emp QUERY=\"WHERE job=\'SALESMAN\' and sal\<1600\"