新聞中心
數(shù)據(jù)移動(dòng)通常是不同的數(shù)據(jù)庫管理系統(tǒng)之間轉(zhuǎn)移數(shù)據(jù)最實(shí)用的防范,本文將為您詳解DB2數(shù)據(jù)庫中數(shù)據(jù)移動(dòng)的步驟,以及數(shù)據(jù)移動(dòng)的作用,供您參考,希望對(duì)您能有所幫助。

在瓦房店等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供做網(wǎng)站、成都做網(wǎng)站 網(wǎng)站設(shè)計(jì)制作按需制作網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,成都全網(wǎng)營銷,外貿(mào)網(wǎng)站建設(shè),瓦房店網(wǎng)站建設(shè)費(fèi)用合理。
db2中所謂的數(shù)據(jù)移動(dòng),包括:
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ù)移動(dòng)的作用:
如果要在不同的數(shù)據(jù)庫管理系統(tǒng)之間轉(zhuǎn)移數(shù)據(jù),數(shù)據(jù)移動(dòng)通常是最實(shí)用的一種方法,因?yàn)槿魏我环N數(shù)據(jù)庫管理系統(tǒng)都支持常用的幾種文件格式,通過這個(gè)通用的接口,就很容易實(shí)現(xiàn)不同系統(tǒng)間數(shù)據(jù)的轉(zhuǎn)移。
這三個(gè)命令中,export最簡單,因?yàn)閺谋碇邢蛭募D(zhuǎn)移數(shù)據(jù),通常不會(huì)出現(xiàn)錯(cuò)誤,也不會(huì)有非法的數(shù)據(jù)。
在講解命令之前,首先介紹一下文件的格式。#p#
1. asc——非定界ascii文件,是一個(gè)ascii字符流。數(shù)據(jù)流中的行由行定界符分隔,而行中的每一列則通過起始和結(jié)束位置來定義。例如:
10 head office 160 corporate new york
15 new england 50 eastern boston
20 mid atlantic 10 eastern washington
38 south atlantic 30 eastern atlanta
42 great lakes 100 midwest chicago
51 plains 140 midwest dallas
66 pacific 270 western san francisco
84 mountain 290 western denver
2. del——定界ascii文件,也是一個(gè)ascii字符流。數(shù)據(jù)流中的行由行定界符分隔,行中的列值由列定界符分隔。文件類型修飾符可用于修改這些定界符的默認(rèn)值。例如:
10,"head office",160,"corporate","new york"
15,"new england",50,"eastern","boston"
20,"mid atlantic",10,"eastern","washington"
38,"south atlantic",30,"eastern","atlanta"
42,"great lakes",100,"midwest","chicago"
51,"plains",140,"midwest","dallas"
66,"pacific",270,"western","san francisco"
84,"mountain",290,"western","denver"
網(wǎng)頁名稱:DB2數(shù)據(jù)移動(dòng)的作用
文章起源:http://www.5511xx.com/article/dpphjjc.html


咨詢
建站咨詢
