<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-tw" lang="zh-tw" >
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="shortcut icon" href="images/favicon.ico" />
	  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="robots" content="index, follow" />
  <meta name="keywords" content="OSSFNL712" />
  <meta name="title" content="坐在沙發上輕鬆完成資料庫統計報表 - SOFA Statistics" />
  <meta name="description" content=" 官方網站:https://www.sofastatis tics.com/ Debia n、Ubuntu 套件下載網址:https://ncu.dl.sourceforge.net/project /s ofastatisti cs/sofastatistics/1.0.1/sofastats-1.0.1-1_all. d eb (1.1MB) 其他 發 行版本下載網址:https://" />
  <meta name="generator" content="" />
  <title>坐在沙發上輕鬆完成資料庫統計報表 - SOFA Statistics - OpenFoundry</title>
  <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
  <link rel="stylesheet" href="components/com_jcomments/tpl/default/style.css%3Fv=10.css" type="text/css" />
  <link rel="stylesheet" href="components/com_gantry/css/gantry.css" type="text/css" />
  <link rel="stylesheet" href="components/com_gantry/css/grid-12.css" type="text/css" />
  <link rel="stylesheet" href="components/com_gantry/css/joomla.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/joomla.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/style1.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/light-body.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/demo-styles.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/template.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/typography.css" type="text/css" />
  <link rel="stylesheet" href="templates/rt_quantive_j15/css/fusionmenu.css" type="text/css" />
  <style type="text/css">
    <!--
#rt-main-surround ul.menu li.active > a, #rt-main-surround ul.menu li.active > .separator, #rt-main-surround ul.menu li.active > .item, #rt-main-surround .square4 ul.menu li:hover > a, #rt-main-surround .square4 ul.menu li:hover > .item, #rt-main-surround .square4 ul.menu li:hover > .separator, .roktabs-links ul li.active span {color:#0088B5;}
a, #rt-main-surround ul.menu a:hover, #rt-main-surround ul.menu .separator:hover, #rt-main-surround ul.menu .item:hover {color:#0088B5;}
    -->
  </style>
  <script type="text/javascript" src="components/com_jcomments/js/jcomments-v2.1.js%3Fv=2"></script>
  <script type="text/javascript" src="components/com_jcomments/libraries/joomlatune/ajax.js"></script>
  <script type="text/javascript" src="media/system/js/mootools.js"></script>
  <script type="text/javascript" src="media/system/js/caption.js"></script>
  <script type="text/javascript" src="components/com_gantry/js/gantry-buildspans.js"></script>
  <script type="text/javascript" src="components/com_gantry/js/gantry-inputs.js"></script>
  <script type="text/javascript" src="templates/rt_quantive_j15/js/jquery.cookie.js"></script>
  <script type="text/javascript" src="modules/mod_roknavmenu/themes/fusion/js/fusion.js"></script>
  <script type="text/javascript" src="modules/mod_ofssologin/js/ofssologin.js"></script>
  <script type="text/javascript">

			window.addEvent('domready', function() {
				var modules = ['rt-block'];
				var header = ['h3','h2','h1'];
				GantryBuildSpans(modules, header);
			});
		
InputsExclusion.push('.content_vote','#rt-popup')
		        window.addEvent('load', function() {
					new Fusion('ul.menutop', {
						pill: 0,
						effect: 'slide and fade',
						opacity: 1,
						hideDelay: 500,
						centered: 0,
						tweakInitial: {'x': -2, 'y': 0},
        				tweakSubsequent: {'x': 0, 'y': -14},
						menuFx: {duration: 200, transition: Fx.Transitions.Sine.easeOut},
						pillFx: {duration: 400, transition: Fx.Transitions.Back.easeOut}
					});
	            });
  </script>
<!-- <script type="text/javascript" src="/sso/javascripts/langsync.js"></script> -->
<!-- <script src="/templates/rt_quantive_j15/js/ossf.js"></script> -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-4136519-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
	<body  class="backgroundlevel-low backgroundstyle-style8 bodylevel-med bodystyle-light cssstyle-style1 logostyle-dark font-family-helvetica font-size-is-default menu-type-fusionmenu col12 ">
		<div id="rt-main-background">
			<div class="rt-container">
																<div id="rt-header">
					<div class="rt-grid-7 rt-alpha">
    			<div class="rt-block">
    	    	<a href="index.html" id="rt-logo"></a>
    		</div>
	    
</div>
<div class="rt-grid-5 rt-omega">
                    <div class="square9">
                    <div class="rt-block">
				<div class="rt-module-surround">
					<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
					<div class="rt-module-inner">
	                							<div class="module-content">
		                	<div class="ofssologin_square9"><a href="index.html">登入</a>&nbsp;&nbsp|&nbsp;&nbsp;<span><a href="en/news/8260%3Ftask=view.html" ><span lang="en" xml:lang="en">English</span></a></li></ul></span><!--Joom!fish V2.0.4 (Lightning)-->
<!-- &copy; 2003-2009 Think Network, released under the GPL. -->
<!-- More information: at http://www.joomfish.net -->
<div class="ofssologin_search_square9">
  <form id="of_search" action="https://www.openfoundry.org/of/openfoundry/search" method="get" onsubmit="of_search(); return false;">
    <select id="of_search_type">
      <option value="Projects"> 專案 </option>
      <option value="Content"> 文章 </option>
      <option value="People"> 人才 </option>
    </select>
    <input id="query" name="query" id="mod_search_searchword" maxlength="50" alt="search" class="inputbox" type="text" size="28" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" />
    <input type="hidden" name="commit" value="search" />
  </form>
</div></div>						</div>
					</div>
					<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
				</div>
            </div>
                </div>
		
</div>
					<div class="clear"></div>
				</div>
																<div id="rt-navigation"><div id="rt-navigation2"><div id="rt-navigation3">
					
<div class="nopill">
	<ul class="menutop level1 " >
						<li class="item1 root" >
					<a class="orphan item bullet" href="index.html"  >
				<span>
			    				首頁				   
				</span>
			</a>
			
			
	</li>	
							<li class="item32 root" >
					<a class="orphan item bullet" href="archived.html"  >
				<span>
			    				專案				   
				</span>
			</a>
			
			
	</li>	
							<li class="item186 root" >
					<a class="orphan item bullet" href="tw/community.html"  >
				<span>
			    				Who&#039;s Who				   
				</span>
			</a>
			
			
	</li>	
							<li class="item4 active root" >
					<a class="orphan item bullet" href="tw/news.html"  >
				<span>
			    				新聞				   
				</span>
			</a>
			
			
	</li>	
							<li class="item5 root" >
					<a class="orphan item bullet" href="tw/law-and-licensing.html"  >
				<span>
			    				法律源地				   
				</span>
			</a>
			
			
	</li>	
							<li class="item3 root" >
					<a class="orphan item bullet" href="tw/activities.html"  >
				<span>
			    				活動				   
				</span>
			</a>
			
			
	</li>	
							<li class="item2 root" >
					<a class="orphan item bullet" href="tw/resourcecatalog%3FName=Value.html"  >
				<span>
			    				資源表列				   
				</span>
			</a>
			
			
	</li>	
							<li class="item45 root" >
					<a class="orphan item bullet" href="tw/about.html"  >
				<span>
			    				關於				   
				</span>
			</a>
			
			
	</li>	
				</ul>
</div>

				    <div class="clear"></div>
				</div></div></div>
								<div class="rt-surround"><div class="rt-surround2"><div class="rt-surround3">
										<div id="rt-showcase-section">
												<div id="rt-showcase">
							<div class="rt-grid-12 rt-alpha rt-omega">
    		<div class="clear"></div>
		
		
                <div class="close-note">
                    <div class="rt-block">
               					<div class="module-content">
                	<div style="font-size:medium; background-image:linear-gradient(120deg,#159957,#4298b2);color:white;padding:20px;margin:-10px -18px;">感謝您對「自由軟體鑄造場」的支持與愛護,十多年來「自由軟體鑄造場」受中央研究院支持,並在資訊科學研究所以及資訊科技創新研究中心執行,現已完成階段性的任務。 <a style="color: #45d1ff;" href="https://www.openfoundry.org/">原網站</a>預計持續維運至 2021年底,網站內容基本上不會再更動。本網站由 <a style="color: #45d1ff;" href="https://denny.one/">Denny Huang</a> 備份封存。<br />也紀念我們永遠的朋友 李士傑先生(Shih-Chieh Ilya Li)。</div>				</div>
            </div>
                </div>
		
</div>
							<div class="clear"></div>
						</div>
																	</div>
															<div id="rt-main-surround">
												<div id="rt-breadcrumbs">
								<div class="rt-breadcrumb-surround">
		<a href="index.html" id="breadcrumbs-home"></a>
		<span class="breadcrumbs pathway">
<span class="no-link">新聞</span></span>
	</div>
	
							<div class="clear"></div>
						</div>
																							              <div id="rt-main" class="sa3-mb9">
                <div class="rt-main-inner">
                    <div class="rt-grid-9 rt-push-3">
                                                <div class="rt-block">
                            							<div class="square1">
							<div class="rt-module-surround">
								<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
								<div class="rt-module-inner">
		                            <div id="rt-mainbody">
		                                
<div class="rt-joomla ">
	<div class="rt-article">
		
				<div class="rt-headline"><h1 class="rt-article-title">坐在沙發上輕鬆完成資料庫統計報表 - SOFA Statistics</h1>		</div>
		<div class="clear"></div>
		
		
		
				<div class="rt-articleinfo">
						<div class="rt-article-icons">
								<a href="tw/news/8260--sofa-statistics%3Ftmpl=component&amp;print=1&amp;page=.html" title="列印" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" rel="nofollow"><span class="icon print"></span></a>																</div>
			
			<span class="rt-date-posted">
						建立日期			2011-02-18 21:49						&nbsp;&nbsp;&nbsp;&nbsp;						最近更新在 2011-02-18 22:11						</span>

						<span class="rt-author">
				作者是 翁卓立			</span>
				
					</div>
		
		
		<ul>
<li>官方網站:<a href="https://www.sofastatistics.com/" target="_blank">https://www.sofastatistics.com/</a></li>
<li>Debian、Ubuntu 套件下載網址:<a href="https://ncu.dl.sourceforge.net/project/sofastatistics/sofastatistics/1.0.1/sofastats-1.0.1-1_all.deb" target="_blank">https://ncu.dl.sourceforge.net/project/sofastatistics/sofastatistics/1.0.1/sofastats-1.0.1-1_all.deb</a> (1.1MB)</li>
<li>其他發行版本下載網址:<a href="https://ncu.dl.sourceforge.net/project/sofastatistics/sofastatistics/1.0.2/sofastats-1.0.2.tar.gz" target="_blank">https://ncu.dl.sourceforge.net/project/sofastatistics/sofastatistics/1.0.2/sofastats-1.0.2.tar.gz</a> (1.3MB)</li>
</ul>
<br />
<h3>簡介</h3>
在需要處理大量資料的場合,大多數人都會採用資料庫系統作為處理資料的輔助工具。資料庫系統除了可以作為資料的存放空間以外,也能進行一些簡單的資料分析工作,或是自行撰寫程式並連結資料庫系統以進行資料查詢,並產生一些簡單的報表以便在會議中作為簡報資料使用。這樣的作業模式已經是行之有年的方式,相信大多數的資料庫管理人員,對於這樣的作業模式並不會感到陌生。<br /> 


<br />雖然以程式語言搭配資料庫系統進行資料查詢或統計相當容易,但這樣的操作方式可能只適合在採用固定資料庫、表格與資料欄位作為統計資料來源的場合使用。例如原先撰寫的程式之中使用預先指定的資料庫欄位進行操作,如果想要統計其他資料庫或其他欄位的相關資料,便可能需要修改程式,甚至需要變更處理的演算法。雖然這樣的作業方式也是一種可行的解決方案,但很明顯的,這樣的方式並不是相當有效率的工作模式。因為只要需求的條件一旦變更,相關人員便需要進行程式的修正,處理上顯然較為麻煩。<br /><br />除了資料來源可能隨時會變更以外,另外一種相當常見的需求,是資料庫的統計報表需要採用圖表加以呈現,才能讓其他人在最短的時間內了解整個統計報表的重點所在。網路上有許多的繪圖程式庫可以作為程式產生圖表的輔助工具使用,但這仍然需要自行了解這些程式庫的使用與呼叫方式,也必須撰寫相關的程式碼,才能達到自動產生統計圖表的目的。如果這些工作都能自動完成,自然可以減輕許多資料庫管理員的工作負擔,不再需要整天埋首於電腦鍵盤之中,只為了產生幾個簡單的報表。事實上可以作為資料庫統計與報表產生器的工具非常多,且各有各的特色。本文所要介紹的 SOFA Statistics,也是其中的一種。此工具的全名為 Statistics Open For All,而其縮寫 SOFA 則表示這套工具可以達到十分容易使用的目的,如同坐在沙發上一樣的舒適與簡單。<br /><br /><a href="images/110222/SOFA/sofa_01.png" target="_blank"><img src="images/110222/SOFA/sofa_01.png" border="0" width="500" /></a><br />▲SOFA 的操作主畫面。<br /><br />
<h3>操作簡易化的設計</h3>
SOFA 本身可以提供許多資料統計與分析功能,也能作為報表輸出程式使用。由於主要設計目的是為了減少資料庫處理人員的工作負荷,因此在安裝與操作上都儘量以最簡單的方式進行設計。以在 Ubuntu 或 Debian 發行版本上安裝 SOFA 為例,只需要直接下載 SOFA 官方網站所提供的套件檔,再使用「dpkg」指令直接安裝即可。至於其他的 Linux 發行版本,也可以下載原始檔進行編譯與安裝,整個過程相當簡便。除了 Linux 版本以外,為了讓其他作業系統的使用者也能體驗這套工具程式的優點,因此 SOFA 也直接提供 Windows 或 Mac OS 的執行檔,不需要擔心這套工具只能在特定的作業系統或發行版本中使用。<br /><br />除了安裝相當方便以外,SOFA 的操作介面也相當直覺。即使是初次使用 SOFA 的使用者,只需要花個幾分鐘大致瀏覽一下整個系統的操作介面,便能了解 SOFA 所提供的大部份功能,並直接進行操作。如果希望在會議的簡報檔之中直接使用資料庫的統計數據,利用 SOFA 產生輸出報表也是相當方便的作業方式。SOFA 不但提供了多元化的報表格式,而且還可以使用十分美觀的輸出報表格式。相較於傳統的統計數據輸出報表,SOFA 所產生的報表可以給人比較深刻的印象,因為許多資料庫統計工具即使可以產生正確的輸出資料,但在畫面呈現上常常會一次提供太多數據資料,讓人眼花聊瞭亂,不知道該從何看起。這樣的問題在 SOFA 中並不會出現,因為 SOFA 已經考慮到輸出報表的美化問題,大多數情況下都能直接看到統計報表的重點所在,不至於在會議中因為輸出報表的混亂情況,導致會議討論時失去焦點的情況發生。<br /><br /><a href="images/110222/SOFA/sofa_02.png" target="_blank"><img src="images/110222/SOFA/sofa_02.png" border="0" width="500" /></a><br />▲SOFA 可以產生許多美觀的輸出報表,且操作相當簡便。<br /><br />以開放原始碼方式釋出的 SOFA,雖然已經盡力讓操作與作業流程儘量簡化,但仍然有可能產生使用者不知道該如何開始使用、或是在遇到問題時無法自行解決。如果使用者有能力自行修改 SOFA 的原始碼並加強 SOFA 的功能,自然可以自行處理。如果使用者沒有這方面的技術能力,或是不希望浪費太多人力、時間在這樣的一套工具身上,亦可以考慮直接使用 SOFA 的商業支援服務。或許採用 SOFA 的商業支援服務需要支出一些預算,但如果可以因此減少許多不必要的人力與時間浪費,或許也是一個可行的應用模式。<br /><br />
<h3>持續增加的新功能</h3>
SOFA 本身是一套新推出不久的軟體專案計畫,所以各種新功能仍然在持續加入與改善當中。經由熱心使用者的回報,有一些現有的功能可能存在程式臭蟲,或是在操作上不夠直覺,也可能一些特殊功能並未在現今版本當中直接支援。這些回報訊息都會被 SOFA 的開發團隊一一檢閱,並篩選出最急需修改的部份在未來的版本中慢慢加入。可以想像得到的是,經由使用者回報與功能修正這樣來回的過程,未來新版本的 SOFA 一定會有更多方便的統計與報表輸出功能可以使用。<br /><br />如果有一些已被納入會加入的新功能,因為人力資源問題或是優先順序問題而暫時不加入 SOFA 的支援功能當中,通常 SOFA 還是會將這些功能列出,只是會加入一個「已計畫新增功能」的標示,表示此功能目前雖然尚未支援,但在將來的版本當中一定會加入,除非有發生任何不可抗拒的問題,才有可能取消。為了方便使用者查詢 SOFA 新功能的發展現況,SOFA 開發團隊也成立了一個專屬的部落格,可以讓使用者了解此專案目前已支援與預計在將來支援的功能為何。此部落格的網址為「<a href="https://www.sofastatistics.com/blog/" target="_blank">https://www.sofastatistics.com/blog/</a>」,亦可使用 RSS 直接訂閱。<br /><br /><a href="images/110222/SOFA/sofa_03.png" target="_blank"><img src="images/110222/SOFA/sofa_03.png" border="0" width="500" /></a><br />▲SOFA 提供專屬部落格作為新功能的介紹網站。<br /><br />
<h3>美觀的輸出報表格式</h3>
前面也曾經提到,許多資料庫的統計程式只將重心放在資料的統計與分析身上,忽略了輸出報表的美觀與否亦會直接影響使用者的操作觀感。而對於報表的產生過程是否提供了足夠的自動化協助,也是採用此類型工具時的考量重點。但在 SOFA 之中,使用者並不需要擔心這些問題。因為 SOFA 可以採用自動化的方式直接產生各種常見的輸出報表,而且這些輸出報表可以提供相當完整的訊息,甚至可以在不需要經過修改的情況下直接套用到簡報檔案之中,作為會議提報資料使用。SOFA 的輸出報表除了可以自動產生以外,更重點的是在大多數的情況下,都不需要使用者進行手動調整即可提供相當完善的功能支援。如果要進行輸出報表的重新統計,只需要調整輸出參數即可,不需要以人工方式進行重工處理,在使用上顯得相當方便。<br /><br />除了提供各種報表功能以外,SOFA 也相當重視輸出報表的呈現方式。與其他資料庫統計軟體不同的是,SOFA 的輸出報表不但提供了相當多元化的輸出報表格式,而且在外觀上也下了相當程度的苦工,讓使用者可以直接了解這些輸出報表所要呈現的意義。例如一般常見的長條圖,如果只看到圖片,可能覺得是一張平凡無奇的輸出圖表而已。但只要將滑鼠移到輸出報表畫面的圖表上,即可看到該項目的相關數據。不但考慮到操作上的簡便與美觀等相關考量,也提供了互動式的操作模式。<br /><br />大多數 SOFA 的統計資料都可以採用 HTML 網頁檔案的方式直接輸出,只要以瀏覽器開啟該檔案即可看到 SOFA 所產生的輸出報表。比較特別的是,SOFA 在產生報表檔案之後,接下來如果有其他的統計資料需要輸出,則會以附加的方式在此網頁的後方加入新報表的輸出資訊。如此一來,如果希望比較不同時期或是不同統計參數所產生的報表,便可以相當容易的在同一個檔案之中看到輸出結果。如果使用的輸出格式是以表格方式進行處理,則這些輸出資料都可以在 MS Excel 或是 OpenOffice Calc 之類的試算表軟體之中直接開啟,可以增加許多處理方面的彈性。<br /><br /><a href="images/110222/SOFA/sofa_04.png" target="_blank"><img src="images/110222/SOFA/sofa_04.png" border="0" width="500" /></a><br />▲SOFA 可以直接將各種不同的統計報表輸出至同一個網頁檔案之中。<br /><br />
<h3>支援大多數的資料庫系統</h3>
許多資料庫統計工具雖然聲稱可以支援眾多不同的資料庫系統,但有一些是以取巧的方式達到這樣的支援功能,也就是先將資料庫的數據輸出成該工具程式可以接受的格式,再以匯入資料的方式加入該工具可以直接支援的資料庫系統之中。雖然廣義而言也可以說是支援多種資料庫系統,但畢竟在處理上比較麻煩,在資料量較大的應用場合,也可能需要一些時間進行處理。<br /><br />SOFA 則是直接支援許多不同的資料庫系統,並可以直接存取存放在這些資料庫系統之中的資料。如果使用者可以提供資料庫的存取帳號,甚至可以直接經由 SOFA 進行資料庫內部資料的編輯工作,或是使用簡單的資料過濾功能將處理焦點放在特定範圍的資料當中。目前 SOFA 支援的資料庫系統有 MySQL、Microsoft Access、SQLite、PostgreSQL、MS SQL Server 等各種主流的資料庫系統。至於 Oracle 系統,目前雖然仍然無法直接支援,但已經被列入 SOFA 未來要支援的資料庫系統之一。<br /><br />如果要進行統計的資料存放在數個不同的資料庫系統之中,SOFA 亦可直接進行處理,不需要擔心會因此而無法使用 SOFA 進行資料統計與分析。因為 SOFA 可以處理存放在任何資料庫之中的資料,只要該資料庫的系統是 SOFA 有直接支援即可。<br /><br />如果希望直接將資料匯入 SOFA 內建的 SQLite 資料庫再進行處理,亦可使用 SOFA 所提供的匯入功能。SOFA 可以直接匯入 MS Excel 的試算表檔案格式,但是這個功能只在 Windows 版本之中提供,且匯入 Excel 檔案時並不需要在系統之中安裝 MS Excel 亦可進行。如果匯入資料的來源格式為開放文件格式中的試算表格式 (OpenDocument Spreadsheet, ODS) ,SOFA 可以直接支援 OpenOffice Calc 與 Gnumeric 這二套試算表軟體所儲存的 .ods 檔案。至於最常見的 CSV 格式,以及越來越多人使用的 Google Docs 線上文件系統所產生的試算表檔案,也都能匯入 SOFA 的內建資料庫之中。所有匯入的資料都能在 SOFA 之中進行查看與編輯,如果需要變更匯入資料的內容,亦可使用此功能進行處理。<br /><br /><a href="images/110222/SOFA/sofa_05.png" target="_blank"><img src="images/110222/SOFA/sofa_05.png" border="0" width="500" /></a><br />▲支援許多常見的資料庫系統,亦可直接匯入資料至內建的資料庫之中。<br /><br />
<h3>結語</h3>
以往一談到要擷取資料庫系統中的資料進行分析,甚至要製作成美觀又具有直覺性的輸出報表,可能大多數的資料庫管理員都會感到十分痛苦。因為如果沒有適當的工具作為輔助,直接存取資料庫的內容並進行統計,會是一件相當複雜的工作,稍一不慎可能影響資料庫系統的執行效能,甚至傷害到存放其中的資料內容。<br /><br />在尚未使用 SOFA 之前,大多數人可能很難想像資料庫系統的統計與分析功能,居然可以如此簡便的完成。SOFA 除了擁有許多與眾不同的功能支援以外,甚至還能產生一些具有相當水準的輸出報表,對於經常需要分析資料庫內容,並製作會議簡報的人而言,可以說是一套不可或缺的工具軟體。<br /><br />
<h3>作者簡介</h3>
翁卓立<br />逢甲大學資訊工程學系、台灣科技大學電子所畢業,目前擔任韌體研發工作,主要使用 Embedded Linux 進行產品開發。著有「Linux 進化特區:Ubuntu 10.04 從入門到精通」等書。
			<!-- Show relate article -->
				<!-- end -->
		<div class="article_note">
		<!-- Add tags use metakey, and show OSSF Newsletter tag: OSSFNL+NUM-->
		<br><br> <hr style='border: 1px dashed #D2DADB;'><b>自由軟體鑄造場電子報&nbsp;:</b>&nbsp;<a href='previous-issue%3Ftask=view&amp;id=712.html'>第 167 期 來自封閉陣營的 Ms-PL 與 Ms-RL</a><br>				<!-- End -->
					<br>
					<b>分類: </b><a href="tw/foss-programs.html">				源碼秘技					</a>				</div>
			 <!-- AddThis Button BEGIN ID 3001 is the front page article -->
     			<br><br>
       <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
       <a class="addthis_button_preferred_1"></a>
       <a class="addthis_button_preferred_2"></a>
       <a class="addthis_button_preferred_3"></a>
       <a class="addthis_button_preferred_4"></a>
       <a class="addthis_button_compact"></a>
       <a class="addthis_counter addthis_bubble_style"></a>
       </div>
       <script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
       <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=openfoundry"></script>
       <!-- AddThis Button END -->
     <br>
		<div class="totop" ><a class="rt-totop" href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" style="outline: medium none;">↑ Top</a></div>
            <!-- AddThis Button END -->

		<script type="text/javascript">
var jcomments=new JComments(8260, 'com_content','https://openfoundry.org/index.php?option=com_jcomments&amp;tmpl=component&amp;lang=');
jcomments.setList('comments-list');
</script>
<div id="jc">
<div id="comments"><h4>評論<a class="refresh" href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" title="重新整理評論列表" onclick="jcomments.showPage(8260,'com_content',0);return false;">&nbsp;</a></h4>
<div id="comments-list" class="comments-list">
        <div class="even" id="comment-item-266"><div class="rbox"><div class="rbox_tr"><div class="rbox_tl"><div class="rbox_t">&nbsp;</div></div></div><div class="rbox_m">
<div class="comment-avatar"><img src="http://www.gravatar.com/avatar.php?gravatar_id=644ece32e1d2683cf1457a6f16d70bbb&amp;default=https%3A%2F%2Fwww.openfoundry.org%2Fcomponents%2Fcom_jcomments%2Fimages%2Fno_avatar.png" alt="" /></div>
<div class="comment-box avatar-indent">
<span class="comments-vote">
	<span id="comment-vote-holder-266">
<a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-good" title="優質的評論" onclick="jcomments.voteComment(266, 1);return false;"></a><a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-poor" title="差勁的評論" onclick="jcomments.voteComment(266, -1);return false;"></a>
<span class="vote-none">0</span>
	</span>
</span>
<a class="comment-anchor" href="tw/foss-programs/8260--sofa-statistics.html#comment-266" id="comment-266">#1</a>
<span class="comment-author">kiku</span>
<span class="comment-date">2012-03-01 14:48</span>
<div class="comment-body" id="comment-body-266">請問sofa在windows上<span style="font-size:0px;padding:0;margin:0;"> </span>是否還需安裝其他套件之類的<br />我在一台新的xp sp3上安裝完sofa後執行<br />卻無反應<br />奇怪的是在另一台舊電腦上安裝卻<span style="font-size:0px;padding:0;margin:0;"> </span>正常<br />謝謝</div>
</div><div class="clear"></div>
</div><div class="rbox_br"><div class="rbox_bl"><div class="rbox_b">&nbsp;</div></div></div></div>
</div>
        <div class="odd" id="comment-item-267"><div class="rbox"><div class="rbox_tr"><div class="rbox_tl"><div class="rbox_t">&nbsp;</div></div></div><div class="rbox_m">
<div class="comment-avatar"><img src="http://www.gravatar.com/avatar.php?gravatar_id=5057fe810a1300c983610baa397eb1af&amp;default=https%3A%2F%2Fwww.openfoundry.org%2Fcomponents%2Fcom_jcomments%2Fimages%2Fno_avatar.png" alt="" /></div>
<div class="comment-box avatar-indent">
<span class="comments-vote">
	<span id="comment-vote-holder-267">
<a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-good" title="優質的評論" onclick="jcomments.voteComment(267, 1);return false;"></a><a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-poor" title="差勁的評論" onclick="jcomments.voteComment(267, -1);return false;"></a>
<span class="vote-good">+1</span>
	</span>
</span>
<a class="comment-anchor" href="tw/foss-programs/8260--sofa-statistics.html#comment-267" id="comment-267">#2</a>
<span class="comment-author">Joey Weng</span>
<span class="comment-date">2012-03-01 15:24</span>
<div class="comment-body" id="comment-body-267">SOFA 需要先行安裝下列套件,也許您缺<span style="font-size:0px;padding:0;margin:0;"> </span>了其中某一項或某幾項。<br /><br />python - this is the language SOFA is written in<br />numpy - this provides numerical processing<br />pysqlite - this lets SOFA connect to SQLite databases<br />pywin32 - this lets SOFA connect to MS Access and Excel<br />wxPython - this provides the interface for SOFA<br />comtypes - needed for internal web display<br />MySQL-python - lets python connect to MySQL databases</div>
</div><div class="clear"></div>
</div><div class="rbox_br"><div class="rbox_bl"><div class="rbox_b">&nbsp;</div></div></div></div>
</div>
        <div class="even" id="comment-item-268"><div class="rbox"><div class="rbox_tr"><div class="rbox_tl"><div class="rbox_t">&nbsp;</div></div></div><div class="rbox_m">
<div class="comment-avatar"><img src="http://www.gravatar.com/avatar.php?gravatar_id=644ece32e1d2683cf1457a6f16d70bbb&amp;default=https%3A%2F%2Fwww.openfoundry.org%2Fcomponents%2Fcom_jcomments%2Fimages%2Fno_avatar.png" alt="" /></div>
<div class="comment-box avatar-indent">
<span class="comments-vote">
	<span id="comment-vote-holder-268">
<a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-good" title="優質的評論" onclick="jcomments.voteComment(268, 1);return false;"></a><a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-poor" title="差勁的評論" onclick="jcomments.voteComment(268, -1);return false;"></a>
<span class="vote-good">+1</span>
	</span>
</span>
<a class="comment-anchor" href="tw/foss-programs/8260--sofa-statistics.html#comment-268" id="comment-268">#3</a>
<span class="comment-author">kiku</span>
<span class="comment-date">2012-03-03 11:43</span>
<div class="comment-body" id="comment-body-268">感謝<br />查了一下sofa的online help<br />說需要python 2.6<br />因此除安裝python2.6外<br />還要下載其他對應2.6版的套件<br />問題是安裝完後直接執行sofa<span style="font-size:0px;padding:0;margin:0;"> </span>沒反應<br />必須在command line輸入<br />C:\Python26\pyt<span style="font-size:0px;padding:0;margin:0;"> </span>hon.exe “C:\Program Files\sofastats<span style="font-size:0px;padding:0;margin:0;"> </span>\start.py"<br />才會出現sofa的畫面<br />但別台電腦直接執行sofa就可<span style="font-size:0px;padding:0;margin:0;"> </span>以了<br />不知有何方法解決<br />謝謝</div>
</div><div class="clear"></div>
</div><div class="rbox_br"><div class="rbox_bl"><div class="rbox_b">&nbsp;</div></div></div></div>
</div>
        <div class="odd" id="comment-item-269"><div class="rbox"><div class="rbox_tr"><div class="rbox_tl"><div class="rbox_t">&nbsp;</div></div></div><div class="rbox_m">
<div class="comment-avatar"><img src="http://www.gravatar.com/avatar.php?gravatar_id=5057fe810a1300c983610baa397eb1af&amp;default=https%3A%2F%2Fwww.openfoundry.org%2Fcomponents%2Fcom_jcomments%2Fimages%2Fno_avatar.png" alt="" /></div>
<div class="comment-box avatar-indent">
<span class="comments-vote">
	<span id="comment-vote-holder-269">
<a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-good" title="優質的評論" onclick="jcomments.voteComment(269, 1);return false;"></a><a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" class="vote-poor" title="差勁的評論" onclick="jcomments.voteComment(269, -1);return false;"></a>
<span class="vote-good">+1</span>
	</span>
</span>
<a class="comment-anchor" href="tw/foss-programs/8260--sofa-statistics.html#comment-269" id="comment-269">#4</a>
<span class="comment-author">Joey Weng</span>
<span class="comment-date">2012-03-03 12:24</span>
<div class="comment-body" id="comment-body-269">這樣聽來大概是 Python 的路徑問題。將 python 路徑加入 $path 環境變數試試看,或是直接將 start.py 中指定的 python 路徑換掉,或許就能解決您的問題<span style="font-size:0px;padding:0;margin:0;"> </span>。</div>
</div><div class="clear"></div>
</div><div class="rbox_br"><div class="rbox_bl"><div class="rbox_b">&nbsp;</div></div></div></div>
</div>
</div>
<div id="comments-list-footer"><a class="refresh" href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#" title="重新整理評論列表" onclick="jcomments.showPage(8260,'com_content',0);return false;">重新整理評論列表</a></div>
</div>
<div id="comments-footer" align="center"><a href="http://www.joomlatune.com" title="JComments" target="_blank">JComments</a></div>
<script type="text/javascript">
jcomments.setAntiCache(1,0,0);
</script> 
</div>	</div>
</div>

		                            </div>
									<div class="clear"></div>
								</div>
								<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
							</div>
							</div>
                                                    </div>
                                            </div>
                                <div class="rt-grid-3 rt-pull-9">
                <div id="rt-sidebar-a">
                                    <div class="square4">
                    <div class="rt-block">
				<div class="rt-module-surround">
					<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
					<div class="rt-module-inner">
	                							<div class="module-content">
		                	<ul class="menu"><li class="item56"><a href="tw/previous-issue.html"><span>電子報總覽</span></a></li><li class="item55"><a href="tw/about-newsletter.html"><span>關於本報</span></a></li></ul>						</div>
					</div>
					<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
				</div>
            </div>
                </div>
		                    <div class="rt-block">
				<div class="rt-module-surround">
					<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
					<div class="rt-module-inner">
	                							<div class="module-content">
		                	<ul class="menu"><li class="item115"><a href="tw/foss-news.html"><span>源碼新聞</span></a></li><li class="item141"><a href="tw/case-job.html"><span>接案 / 工作</span></a></li></ul>						</div>
					</div>
					<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
				</div>
            </div>
        	                <div class="square1">
                    <div class="rt-block">
				<div class="rt-module-surround">
					<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
					<div class="rt-module-inner">
	                							<div class="module-title"><h2 class="title">專欄總覽</h2></div>
						<div class="clear"></div>
		                						<div class="module-content">
		                	<ul class="menu"><li class="item37"><a href="tw/tech-column.html"><span>技術專欄</span></a></li><li class="item40"><a href="tw/foss-programs.html"><span>源碼秘技</span></a></li><li class="item35"><a href="tw/legal-article-.html"><span>法律專欄</span></a></li><li class="item154"><a href="tw/foss-forum.html"><span>自由專欄</span></a></li><li class="item162"><a href="tw/enterprise-application.html"><span>企業應用</span></a></li><li class="item44"><a href="tw/foss-projects.html"><span>源碼專案</span></a></li></ul>						</div>
					</div>
					<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
				</div>
            </div>
                </div>
		                <div class="square1">
                    <div class="rt-block">
				<div class="rt-module-surround">
					<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
					<div class="rt-module-inner">
	                							<div class="module-content">
		                	<p style="text-align: center;"><a href="news%3Fformat=feed&amp;type=rss" target="_black"><img src="images/M_images/news-rss-feed.png" border="0" /></a><br /><a href="https://www.openfoundry.org/rss-feed/Newsletter" target="_black"><img src="images/M_images/newsletter-rss-feed.png" border="0" /></a></p>						</div>
					</div>
					<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
				</div>
            </div>
                </div>
		
                </div>
            </div>

                    <div class="clear"></div>
                </div>
            </div>
																													</div>
										<div id="rt-copyright">
						<div class="rt-grid-12 rt-alpha rt-omega">
                        <div class="rt-block">
				<div class="rt-module-surround">
					<div class="rt-module-top"><div class="rt-module-top2"><div class="rt-module-top3"></div></div></div>
					<div class="rt-module-inner">
	                							<div class="module-content">
		                	<div id="desktop-mobile-version-switch"><span id="mobile-version" class="version-switch"><a href="index.php%3Foption=com_content&amp;task=view&amp;id=8260&amp;Itemid=4%3Bisletter=1.html#">行動版</a></span></div>
自由軟體鑄造場 製作 最佳瀏覽狀態:IE7或Firefox2.0以上 (建議使用Firefox) ‧ 解析度1024*768 <br /> <strong>E-Mail</strong>:<a href="mailto:contact@openfoundry.org">contact@openfoundry.org</a> <strong>Address</strong>:台北市南港區研究院路2段128號 中央研究院資訊科學研究所 . <a href="privacy-policy.html">隱私權條款</a>. <a href="terms-of-use.html">使用條款</a><span style="position: relative; top: 8px; margin-top: -8px;"> <a href="about/8101.html"><img src="images/M_images/rss-feed-all.png" border="0" /></a></span>						</div>
					</div>
					<div class="rt-module-bottom"><div class="rt-module-bottom2"><div class="rt-module-bottom3"></div></div></div>
				</div>
            </div>
        	
</div>
						<div class="clear"></div>
					</div>
					<div class="rt-footer-bottom-wrap"><div class="rt-footer-bottom"><div class="rt-footer-bottom2"><div class="rt-footer-bottom3"></div></div></div></div>
									</div></div></div>
				<div class="rt-surround-bottom"><div class="rt-surround-bottom2"><div class="rt-surround-bottom3"></div></div></div>
							</div>
		</div>
		<!--
		<script id="aptureScript">
						(function (){var a=document.createElement("script");a.defer="true";a.src="http://www.apture.com/js/apture.js?siteToken=vsJttrn";document.getElementsByTagName("head")[0].appendChild(a);})();
     </script>
-->

<!-- Piwik -->
<!-- 			<script type="text/javascript">
			  var _paq = _paq || [];
		  _paq.push(["trackPageView"]);
		  _paq.push(["enableLinkTracking"]);

		    (function() {
			        var u=(("https:" == document.location.protocol) ? "https" : "https") + "://www.openfoundry.org/piwik/";
				    _paq.push(["setTrackerUrl", u+"piwik.php"]);
				    _paq.push(["setSiteId", "1"]);
				        var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
				        g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
					  })();
		  </script> -->
<!-- End Piwik Code -->
	</body>
</html>