亚洲欧美精品沙发,日韩在线精品视频,亚洲Av每日更新在线观看,亚洲国产另类一区在线5

<pre id="hdphd"></pre>

  • <div id="hdphd"><small id="hdphd"></small></div>
      學習啦 > 學習電腦 > 工具軟件 > 辦公軟件學習 > Excel教程 > Excel基礎 > 如何將excel導入oracle數(shù)據(jù)庫的教程

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

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

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

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

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

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

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

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

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

        導入oracle數(shù)據(jù)庫步驟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)

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

        導入oracle數(shù)據(jù)庫步驟6:同時按Windows徽標鍵和R鍵,打開運行,輸入cmd,打開命令提示符,輸入命令:

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

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

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

        control是input.ctl文件名稱及路徑

        導入oracle數(shù)據(jù)庫步驟7:進入oracle數(shù)據(jù)庫,查詢student表,excel已導入成功

      656303