回覆列表
  • 1 # lanfengkd

    資料匯出:

    1 將資料庫TEST完全匯出,使用者名稱system 密碼manager 匯出到D:\daochu.dmp中

    exp system/sinotranstj@orcl file=d:\daochu.dmp full=y

    2 將資料庫中system使用者與sys使用者的表匯出

    exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)

    3 將資料庫中的表table1 、table2匯出

    exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)

    4 將資料庫中的表table1中的欄位filed1以"00"打頭的資料匯出

    exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like "00%"\"資料的匯入

    1 將D:\daochu.dmp 中的資料匯入 TEST資料庫中。

    imp system/manager@TEST file=d:\daochu.dmp full=y;

    上面可能有點問題,因為有的表已經存在,然後它就報錯,對該表就不進行匯入。

    在後面加上 ignore=y 就可以了。

    2 將d:\daochu.dmp中的表table1 匯入

    imp system/manager@TEST file=d:\daochu.dmp tables=(table1)

    DROP TABLE 表名;

  • 中秋節和大豐收的關聯?
  • EXCEL中SUBTOTAL是什麼意思?