1. 程式人生 > >informix單獨匯出和匯入一張表

informix單獨匯出和匯入一張表

informix單獨匯出一張表,使用dbaccess進去後,在query language裡面輸入如下語句:

unload to d:\fileName.txt select * from tableName
informix單獨匯入一張表,使用dbaccess進去後,在query language裡面輸入如下語句:
load from d:\fileName.txt insert into tableName
linux 下:
load from /data/unload/buywearfee.unl insert into buywearfee
注意:在匯入資料的時候,如果要操作的這個表裡面有資料,那麼最好先對資料進行備份,然後清除資料,然後使用匯入資料的命令。