国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 工具軟件 > 辦公軟件學(xué)習(xí) > Excel教程 > Excel基礎(chǔ) > 如何將excel導(dǎo)入oracle數(shù)據(jù)庫(kù)的教程

    如何將excel導(dǎo)入oracle數(shù)據(jù)庫(kù)的教程

    時(shí)間: 業(yè)華773 分享

    如何將excel導(dǎo)入oracle數(shù)據(jù)庫(kù)的教程

      在Excel中錄入好數(shù)據(jù)以后就需要導(dǎo)入到oracle數(shù)據(jù)庫(kù),或許有些朋友不知道該如何做。下面是學(xué)習(xí)啦小編帶來(lái)的關(guān)于如何將excel導(dǎo)入oracle數(shù)據(jù)庫(kù)的教程,歡迎閱讀!

      如何將excel導(dǎo)入oracle數(shù)據(jù)庫(kù)的教程:

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟1:oracle數(shù)據(jù)庫(kù)有一個(gè)student表,現(xiàn)有一個(gè)excel表:student.xlsx,需導(dǎo)入oracle數(shù)據(jù)庫(kù)student表中。

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟2:student表的擁有者是system,system密碼為test

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟3:打開(kāi)需導(dǎo)入的excel表格,單擊office按鈕,選擇另存為--其他格式

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟4:選擇保存路徑(置于D:\),保存類(lèi)型CSV(逗號(hào)分隔)(*.csv),設(shè)置文件名為student.csv,單擊保存

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟5:新建input.ctl文件(置于D:\),內(nèi)容為:

      load data

      infile 'd:\student.csv'

      append into table student fields terminated by ','

      trailing nullcols(id,name,sex,age)

      說(shuō)明:infile后面參數(shù)為欲導(dǎo)入的excel表(已轉(zhuǎn)換成csv格式)路徑及名稱(chēng);append在表后追加;table后面跟oracle數(shù)據(jù)庫(kù)中的表名稱(chēng); terminated by ','表示字段分隔符;(id,name,sex,age)表示字段名稱(chēng)列表

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟6:同時(shí)按Windows徽標(biāo)鍵和R鍵,打開(kāi)運(yùn)行,輸入cmd,打開(kāi)命令提示符,輸入命令:

      sqlldr userid=system/test@netservicename control=d:\input.ctl

      說(shuō)明:system/test,為oracle數(shù)據(jù)庫(kù)表student的所有者及其密碼;

      @ netservicename為網(wǎng)絡(luò)服務(wù)名;

      control是input.ctl文件名稱(chēng)及路徑

      導(dǎo)入oracle數(shù)據(jù)庫(kù)步驟7:進(jìn)入oracle數(shù)據(jù)庫(kù),查詢(xún)student表,excel已導(dǎo)入成功

    656303