<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>匯入 &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/%E5%8C%AF%E5%85%A5/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Fri, 21 Apr 2023 06:07:26 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>匯入 &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Oracle 匯入/匯出 Excel (透過 SQL Developer)</title>
		<link>https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/</link>
					<comments>https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/#comments</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Wed, 13 Mar 2013 07:28:51 +0000</pubDate>
				<category><![CDATA[資料庫]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL Developer]]></category>
		<category><![CDATA[xls]]></category>
		<category><![CDATA[匯入]]></category>
		<category><![CDATA[匯出]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=2711</guid>

					<description><![CDATA[<p>昨天碰到一個情況，內容單位希望自己可以有辦法匯入匯出資料庫，不用每次都要透過技術組支援，這件事其實有好有壞，好的是內容單位可以自己處理很多事物，避免時程的耽擱；麻煩的地方在於，如果匯入的時候發生了什麼&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/" data-wpel-link="internal">Oracle 匯入/匯出 Excel (透過 SQL Developer)</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>昨天碰到一個情況，內容單位希望自己可以有辦法匯入匯出資料庫，不用每次都要透過技術組支援，這件事其實有好有壞，好的是內容單位可以自己處理很多事物，避免時程的耽擱；麻煩的地方在於，如果匯入的時候發生了什麼問題，到時候技術組可能會更頭痛，不過既然內容單位有了這樣的要求，小蛙就順手把文件記錄在這！ </p>



<span id="more-2711"></span>



<p>這裡使用的是<strong> Oracle SQL Developer</strong> 官方免費 Client，下載及設定可參考<a rel="noreferrer noopener nofollow external" href="http://wazai.net/2714/%e5%ae%98%e6%96%b9-client-oracle-sql-developer-%e5%ae%89%e8%a3%9d%e6%95%99%e5%ad%b8" target="_blank" data-wpel-link="external" class="wpel-icon-right">這裡<span class="wpel-icon wpel-image wpel-icon-6"></span></a>。直接上圖 + 說明！ </p>



<h2 class="para wp-block-heading"> 【資料匯出成 Excel】 </h2>



<p>開啟 Oracle SQL Developer 後，在要匯出的資料表上點選<strong>滑鼠右鍵</strong>，選擇「<strong>匯出(B)&#8230;</strong>」。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh6.ggpht.com/-HguTTGDVrcI/UT_1_qdI1XI/AAAAAAAAHbc/3aD3i-5oaMw/2013-1-30%252520%2525E4%2525B8%25258B%2525E5%25258D%252588%25252003-54-37.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh6.ggpht.com/-HguTTGDVrcI/UT_1_qdI1XI/AAAAAAAAHbc/3aD3i-5oaMw/2013-1-30%252520%2525E4%2525B8%25258B%2525E5%25258D%252588%25252003-54-37.png" alt="2013-1-30 下午 03-54-37.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>由於只是要匯出資料，取消勾選「<strong>匯出DDL(E)</strong>」，勾選「<strong>匯出資料(O)</strong>」，格式選擇「<strong>xls</strong>」，選擇存放路徑(這邊要選擇單一檔案，不然會匯出空白的excel)，編碼也要選擇正確，否則會有亂碼的情況。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh6.ggpht.com/-jK6XfcHirQw/UT_1_Z5lsxI/AAAAAAAAHbY/v4BWgOX25c4/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-01.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh6.ggpht.com/-jK6XfcHirQw/UT_1_Z5lsxI/AAAAAAAAHbY/v4BWgOX25c4/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-01.png" alt="2013-3-13 上午 11-16-01.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>確認要匯出的資料，下方還可以設定只匯出某個條件下(where)成立的資料。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh6.ggpht.com/-GcoKKcPIAD8/UT_1_bitSuI/AAAAAAAAHaE/KI_Qq1Bb0_w/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-10.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh6.ggpht.com/-GcoKKcPIAD8/UT_1_bitSuI/AAAAAAAAHaE/KI_Qq1Bb0_w/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-10.png" alt="2013-3-13 上午 11-16-10.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>完整匯出資訊。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh3.ggpht.com/-tn2TMtRmHKg/UT_1_7AwgXI/AAAAAAAAHbg/zUuuHfKbWiM/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-21.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh3.ggpht.com/-tn2TMtRmHKg/UT_1_7AwgXI/AAAAAAAAHbg/zUuuHfKbWiM/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-21.png" alt="2013-3-13 上午 11-16-21.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>點選完成後，開始匯出動作。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh6.ggpht.com/-T0OVujOCg9Q/UT_1_x6PaeI/AAAAAAAAHaU/g_Ar42fF_kg/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-30.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh6.ggpht.com/-T0OVujOCg9Q/UT_1_x6PaeI/AAAAAAAAHaU/g_Ar42fF_kg/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-16-30.png" alt="2013-3-13 上午 11-16-30.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>匯出完成可以到剛剛指定的路徑，看到剛剛匯出的 Excel。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh5.ggpht.com/-uf9QNqY_8VA/UT_8eGvR4xI/AAAAAAAAHec/I84H4qzW5jA/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-37-31.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh5.ggpht.com/-uf9QNqY_8VA/UT_8eGvR4xI/AAAAAAAAHec/I84H4qzW5jA/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-37-31.png" alt="2013-3-13 上午 11-37-31.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<h2 class="para wp-block-heading"> 【從 Excel 匯入資料】</h2>



<p>匯入的部份也同樣簡單，在要匯入的資料表中點選「<strong>匯入資料</strong>」，也可以直接選擇匯入資料後再選擇要匯入的資料表，小蛙在這邊建了一個TEST資料表以供匯入測試。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh6.ggpht.com/-8BSdGFYLW0Q/UT_2AIjeNhI/AAAAAAAAHbk/Zay4VegSq6Y/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-21-43.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh6.ggpht.com/-8BSdGFYLW0Q/UT_2AIjeNhI/AAAAAAAAHbk/Zay4VegSq6Y/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-21-43.png" alt="2013-3-13 上午 11-21-43.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>選擇要匯入的 Excel 檔案。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh3.ggpht.com/-mJxSdQYchIE/UT_2AevGXHI/AAAAAAAAHao/Now6FPgJU0g/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-11.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh3.ggpht.com/-mJxSdQYchIE/UT_2AevGXHI/AAAAAAAAHao/Now6FPgJU0g/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-11.png" alt="2013-3-13 上午 11-22-11.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>預覽要匯入的資料，看看從 excel 載入的資料正不正確，有沒有亂碼 &#8230; 等。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh5.ggpht.com/-U8UJOfcoU3U/UT_2AlsbddI/AAAAAAAAHak/NdvfF_OnXdM/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-20.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh5.ggpht.com/-U8UJOfcoU3U/UT_2AlsbddI/AAAAAAAAHak/NdvfF_OnXdM/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-20.png" alt="2013-3-13 上午 11-22-20.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>匯入方法選擇「<strong>插入</strong>」 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh5.ggpht.com/-tZZwL9XXCCU/UT_2AoUj9nI/AAAAAAAAHa0/qFdut9ZsdwY/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-26.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh5.ggpht.com/-tZZwL9XXCCU/UT_2AoUj9nI/AAAAAAAAHa0/qFdut9ZsdwY/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-26.png" alt="2013-3-13 上午 11-22-26.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>這邊預設應該會全部先幫使用者選好，如果沒有的話，也可以自己選擇哪些欄位是要匯入的。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh5.ggpht.com/-_N2FLunOZu4/UT_8dcjQ3sI/AAAAAAAAHeY/4V-be3FFbyA/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-31.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh5.ggpht.com/-_N2FLunOZu4/UT_8dcjQ3sI/AAAAAAAAHeY/4V-be3FFbyA/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-31.png" alt="2013-3-13 上午 11-22-31.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>選擇欄位對應，如果這邊匯入跟匯出都有勾選表頭的話，會自動使用表頭的欄位名稱來進行對應，否則要自己一一核對。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh4.ggpht.com/-f9RK0FgfAf4/UT_2BKTM8eI/AAAAAAAAHa8/v9YBoomkhoo/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-39.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh4.ggpht.com/-f9RK0FgfAf4/UT_2BKTM8eI/AAAAAAAAHa8/v9YBoomkhoo/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-39.png" alt="2013-3-13 上午 11-22-39.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>真正匯入資料之前，可以點選「驗證」來看看這次的匯入匯不會有問題，如下圖提示在日期欄位發生錯誤。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh6.ggpht.com/-hAiR24E6EwM/UT_8d957MKI/AAAAAAAAHc4/mk6mQDY7H7k/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-58.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh6.ggpht.com/-hAiR24E6EwM/UT_8d957MKI/AAAAAAAAHc4/mk6mQDY7H7k/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-22-58.png" alt="2013-3-13 上午 11-22-58.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>確認無誤，點選完成後開始匯入。 </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="http://lh4.ggpht.com/-KaMdXlCA-fQ/UT_2BpZWXZI/AAAAAAAAHbM/RL7DimoDyDA/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-32-05.png" target="_blank" rel="noopener nofollow external noreferrer" data-wpel-link="external"><img decoding="async" src="//lh4.ggpht.com/-KaMdXlCA-fQ/UT_2BpZWXZI/AAAAAAAAHbM/RL7DimoDyDA/2013-3-13%252520%2525E4%2525B8%25258A%2525E5%25258D%252588%25252011-32-05.png" alt="2013-3-13 上午 11-32-05.png" title="Oracle 匯入/匯出 Excel (透過 SQL Developer)"></a></figure></div>


<p>打完收工！ </p>



<p><strong>Oracle 系列文章：</strong></p>



<ul class="my-li bg-darkblue wp-block-list"><li><a href="https://noter.tw/11178/%e4%bf%ae%e6%94%b9-oracle-sequence/" data-wpel-link="internal">修改 Oracle Sequence</a><a href="https://noter.tw/2371/oracle-%e5%8c%af%e5%85%a5-sql-%e6%aa%94%e6%a1%88/" data-wpel-link="internal"></a></li><li><a href="https://noter.tw/2371/oracle-sqlplus-import-sql-file/" data-wpel-link="internal">Oracle 使用 sqlplus 匯入 SQL 檔案</a></li><li><a href="https://noter.tw/9109/oracle-sqlplus-export-results-to-file/" data-wpel-link="internal">使用 Oracle sqlplus 將查詢結果匯出到檔案</a></li><li><a href="https://noter.tw/2714/%e5%ae%98%e6%96%b9-client-oracle-sql-developer-%e5%ae%89%e8%a3%9d%e6%95%99%e5%ad%b8/" data-wpel-link="internal">官方 Client – Oracle SQL Developer 安裝教學</a></li><li><a href="https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/" data-wpel-link="internal">Oracle 匯入/匯出 Excel (透過 SQL Developer)</a></li></ul>



<p><strong>Excel 相關文章：</strong></p>



<ul class="my-li bg-darkblue wp-block-list"><li><a href="https://noter.tw/9117/excel-filter-and-validation/" data-wpel-link="internal">加入篩選器及下拉選單 (資料驗證)</a></li><li><a href="https://noter.tw/9063/excel-auto-search-and-fill-data-by-vlookup-index-match/" data-wpel-link="internal">搜尋表格 填入資料 強大的 VLOOKUP, INDEX, MATCH</a></li><li><a href="https://noter.tw/9061/split-a-excel-to-files/" data-wpel-link="internal">分拆 Excel 成多個檔案 ( Split A Excel to Files)</a></li><li><a href="https://noter.tw/6550/excel-%e4%bd%bf%e7%94%a8-poi-%e8%ae%80%e5%8f%96%e6%96%87%e5%ad%97%e6%a0%bc%e5%bc%8f%e6%97%a5%e6%9c%9f%e5%8d%bb%e8%ae%8a%e6%88%90%e6%95%b8%e5%ad%97%e7%9a%84%e5%95%8f%e9%a1%8c/" data-wpel-link="internal">Excel 使用 POI 讀取文字格式日期卻變成數字的問題</a></li><li><a href="https://noter.tw/4300/java-%e8%ae%80%e5%8f%96-excel-%e6%96%87%e4%bb%b6xls-xlsx-%e4%bd%bf%e7%94%a8-apache-poi/" data-wpel-link="internal">Java 讀取 Excel 文件(xls, xlsx) – 使用 Apache POI</a></li><li><a href="https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/" data-wpel-link="internal">Oracle 匯入/匯出 Excel (透過 SQL Developer)</a></li><li><a href="https://noter.tw/1732/jsp%e5%b0%87%e8%b3%87%e6%96%99%e5%8c%af%e5%87%ba%e6%88%90excel%e7%9b%b4%e6%8e%a5%e4%b8%8b%e8%bc%89-by-jexcelapi-jxl/" data-wpel-link="internal">JSP將資料匯出成Excel直接下載 by JExcelApi (jxl)</a></li><li><a href="https://noter.tw/1569/java-excel-jxl/" data-wpel-link="internal">Java + Excel = JXL</a></li><li><a href="https://noter.tw/119/ncr-%e8%99%95%e7%90%86%e6%96%b9%e5%bc%8f%ef%bc%9ajava-vba/" data-wpel-link="internal">NCR &amp;#xxxxx; 處理方式：Java &amp; VBA</a></li></ul>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/" data-wpel-link="internal">Oracle 匯入/匯出 Excel (透過 SQL Developer)</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/2711/oracle-%e5%8c%af%e5%85%a5%e5%8c%af%e5%87%ba-excel-%e9%80%8f%e9%81%8e-sql-developer/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
