shell向Oracle匯入資料有sqlldr,向mysql怎麼匯入呢?

來源:互聯網
上載者:User

如題,sqlldr不多贅述。

平時都是向Oracle寫資料,突然想到如果是mysql呢?有沒有類似sqlldr的外掛程式呢?

我沒找到外掛程式,只是mysql操作比較簡單,直接在命令列,匯入檔案就可以了。

mysql -uusername -ppasswd -e "command;command"

 

 

參考資料:

1、shell操作mysql

http://blog.csdn.net/hbcui1984/article/details/5125387

2、例子 http://bbs.chinaunix.net/thread-360349-1-1.html

http://www.blogjava.net/Skynet/archive/2009/10/23/299458.html

3、由CSDN密碼泄露 窺視各大資料庫效能

http://tech.it168.com/a2011/1227/1294/000001294604.shtml

Oralce提供了sqlldr工具,MySQL提供了load data命令,DM7提供了dmfldr工具,dmfldr和sqlldr工具感覺使用起來比較相似,MySQL提供的load
data作為一種SQL命令。  MySQL匯入比較簡單,不需要CTRL檔案,直接在mysql命令列執行即可。

mysql> LOAD
DATA local infile "D:/CSDN/www.csdn.net.sql" into
table CSDN fields 

terminated by '#'; 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.