exp 挑选字段导出数据
    例如:
      表有:
        id,xm,nl字段
      想导出表中的id,xm
     请大家多多参与谢谢

解决方案 »

  1.   

    exp是用来做数据库备份用的,没有楼主要求这么细的粒度。
    楼主可以使用plsql或者pro*c来实现这个需求。
      

  2.   

    打开cmd命令行sqlplus user_name/password@conn_str
    create table table_1_me as select  id,xm from table_1;
    exit
    exp user_name/password@conn_str file=myfile.dmp tables=table_1_me
    imp user_name2/password2@conn_str2 file=myfile.dmp
    sqlplus user_name2/password2@conn_str2
    create table table_1 as select * from table_1_me;
    drop table table_1_me;
    exit
    sqlplus user_name/password@conn_str
    drop table table_1_me;
    exit
    exit
      

  3.   

    要导出字段应该不是做备份用吧?
    如果不是可以考虑使用SQL的DTS.