偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

如何對DB2數(shù)據(jù)移動輕松的進行掌握?

數(shù)據(jù)庫
我們今天主要是教會大家如何正確的對DB2數(shù)據(jù)移動正確的進行掌握,以及對DB2數(shù)據(jù)移動包括的項目以及對數(shù)據(jù)移動的作用的描述。

此文主要向大家描述的是對DB2數(shù)據(jù)移動的輕松掌握,在實際操作中如果要在不同的數(shù)據(jù)庫管理系統(tǒng)之間對數(shù)據(jù)轉(zhuǎn)移的話,數(shù)據(jù)移動可以說是最實用的一種方法,因為任何一種數(shù)據(jù)庫管理系統(tǒng)都支持常用的幾種文件格式。

通過這個通用的接口,就很容易實現(xiàn)不同系統(tǒng)間數(shù)據(jù)的轉(zhuǎn)移。

 

DB2數(shù)據(jù)移動,包括:

 

1. 數(shù)據(jù)的導(dǎo)入(import)

2. 數(shù)據(jù)的導(dǎo)出(export)

3. 數(shù)據(jù)的裝入(load)

導(dǎo)入和裝入都是利用db2的相關(guān)命令把某種格式的文件中的數(shù)據(jù)保存到數(shù)據(jù)庫中的表中。

導(dǎo)出是指把db2數(shù)據(jù)庫的表中的數(shù)據(jù)保存到某種格式的文件當(dāng)中去。

數(shù)據(jù)移動的作用:

如果要在不同的數(shù)據(jù)庫管理系統(tǒng)之間轉(zhuǎn)移數(shù)據(jù),DB2數(shù)據(jù)移動通常是最實用的一種方法,因為任何一種數(shù)據(jù)庫管理系統(tǒng)都支持常用的幾種文件格式,通過這個通用的接口,就很容易實現(xiàn)不同系統(tǒng)間數(shù)據(jù)的轉(zhuǎn)移。

這三個命令中,export最簡單,因為從表中向文件轉(zhuǎn)移數(shù)據(jù),通常不會出現(xiàn)錯誤,也不會有非法的數(shù)據(jù)。

在講解命令之前,首先介紹一下文件的格式。

1. asc——非定界ascii文件,是一個ascii字符流。數(shù)據(jù)流中的行由行定界符分隔,而行中的每一列則通過起始和結(jié)束位置來定義。例如:

 

  1. 10 head Office 160 corporate new york   
  2. 15 new england 50 eastern boston   
  3. 20 mid atlantic 10 eastern washington   
  4. 38 south atlantic 30 eastern atlanta   
  5. 42 great lakes 100 midwest chicago   
  6. 51 plains 140 midwest dallas   
  7. 66 pacific 270 western san francisco   
  8. 84 mountain 290 western denver 

 

 

2. del——定界ascii文件,也是一個ascii字符流。數(shù)據(jù)流中的行由行定界符分隔,行中的列值由列定界符分隔。文件類型修飾符可用于修改這些定界符的默認(rèn)值。例如:

 

 

  1. 10,"head office",160,"corporate","new york"   
  2. 15,"new england",50,"eastern","boston"   
  3. 20,"mid atlantic",10,"eastern","washington"   
  4. 38,"south atlantic",30,"eastern","atlanta"   
  5. 42,"great lakes",100,"midwest","chicago"   
  6. 51,"plains",140,"midwest","dallas"   
  7. 66,"pacific",270,"western","san francisco"   
  8. 84,"mountain",290,"western","denver" 

 

 

以上的相關(guān)內(nèi)容就是對教你輕松掌握DB2數(shù)據(jù)移動的介紹,望你能有所收獲。 

【編輯推薦】

  1. OracleDB2 存儲過程的創(chuàng)建
  2. 對Oracle SQL到DB2 SQL移植的淺析
  3. 詳解在DB2中如何聯(lián)合Oracle數(shù)據(jù)
  4. DB2如何安裝實例數(shù)據(jù)庫和TOLLSDB數(shù)據(jù)庫
  5. IBM DB2數(shù)據(jù)庫發(fā)布9.7.2 實現(xiàn)可移動的表空間
責(zé)任編輯:佚名 來源: 51CTO.com
相關(guān)推薦

2010-08-02 10:06:43

DB2數(shù)據(jù)移動

2010-07-27 11:08:49

DB2數(shù)據(jù)移動

2010-07-30 10:32:31

DB2數(shù)據(jù)移動

2010-08-02 14:34:53

DB2數(shù)據(jù)移動

2010-08-17 15:24:43

DB2數(shù)據(jù)移動

2010-08-05 16:13:20

DB2數(shù)據(jù)庫

2010-09-06 10:00:00

DB2數(shù)據(jù)庫

2010-08-26 11:05:39

DB2數(shù)據(jù)移動

2011-05-13 09:49:55

DB2數(shù)據(jù)移動

2010-08-05 16:08:12

輕松掌握DB2 9.5

2010-08-09 15:44:44

DB2 數(shù)據(jù)類型

2010-08-11 09:50:38

DB2 catalog

2010-08-04 11:12:09

DB2命令執(zhí)行

2010-08-10 17:10:46

2010-07-28 14:07:51

DB2數(shù)據(jù)庫

2010-07-27 15:52:09

DB2數(shù)據(jù)移動

2010-08-09 10:00:25

DB2數(shù)據(jù)移動

2010-07-28 11:27:10

DB2數(shù)據(jù)庫

2010-09-06 17:05:52

DB2數(shù)據(jù)集

2010-08-18 09:09:15

DB2創(chuàng)建外鍵
點贊
收藏

51CTO技術(shù)棧公眾號