wupinny.blogspot.com
皮尼網前走: 十一月 2009
http://wupinny.blogspot.com/2009_11_01_archive.html
這個看似簡單的條件,可讓我小小思考了一下,才寫出自己滿意的寫法。 Oracle]Group By Rollup Function介紹. 有時候User開的需求有列出所有資料後,資料集的最後為所有數值的總計,或是特定群組的小計。 在SQL的世界中,就是可以針對Group By的欄位做小計的功能。 標籤: Group By. 安裝Oracle Express 10g後,Oracle有一份HR的範例資料庫,就在Oracle的系統安裝路徑中。 160;依我的Oracle Express為例,範例資料庫的SQL會放置於 C: oraclexe app oracle product 10.2.0 server demo schema human resources. 訂閱: 文章 (Atom). Oracle]Group By Rollup Function介紹.
wupinny.blogspot.com
皮尼網前走: 一月 2010
http://wupinny.blogspot.com/2010_01_01_archive.html
今日從企圖找出PL/SQL中continue的相似語法,無意間找到了一份PL/SQL與T-SQL的語法用法比較的word文件。也同時也試用google共用文件的功能。 稍後讀完文件後,再做補充說明吧 今天雖然是文章發表日,就讓我先偷懶一下下吧! 日前有一個需求為呈現從今日往前推53週的日期,列出每週的週別與開始與結束日期。每週的開始日期為週二。 Oracle]Mutil Row To One Row應用(二). 的訂單資料Table做為Sample。本次範例想要取得訂單資料中每天訂單中每個貨運公司的最大運費,並且有優先次序的選擇呈現貨運公司的資料,例如:如果當天有托運公司1,2,3呈現資料的次序為 1 2 3. Select orderid, orderdate, shipvia, freight from orders t. 提到Oracle的相關開發工具,就非得提到我每天都一定會使用的 PL/SQL Developer. 當然不外乎就是寫SQL Statement,會用到就是 SQL Window. 訂閱: 文章 (Atom). Oracle]Mutil Row To One Row應用(二).
wupinny.blogspot.com
皮尼網前走: 十月 2010
http://wupinny.blogspot.com/2010_10_01_archive.html
2BLL (Bussiness Logic Layer). 3DAL (Data Access Layer). 要建立起這樣的架構,首先必須建立一個空白專案,我們可用此專案開啟我們的N-Tier全部檔案來檢視。 2建立Client檔案夾,加入Web Application 的Project. BLL則是扮演DAL與UI之前的橋樑,對於取出資料庫取出的資料作邏輯處理,回覆資料給UI。 標籤: ASP.NET. 訂閱: 文章 (Atom).
wupinny.blogspot.com
皮尼網前走: [ASP.NET] 解決Oracle IN clause 超過1000個參數
http://wupinny.blogspot.com/2011/07/aspnet-oracle-in-clause-1000.html
ASPNET] 解決Oracle IN clause 超過1000個參數. 不管在SQL Plus或其他Tool,甚至ASP.NET中,只要出現以下錯誤訊息:. ORA-01795 maximum number of expressions in a list is 1000. 65292;就是你的SQL中,IN的參數超過1000個了。 Select * from TestTable where ID in (1,2,3,4,.,1000) union all select * from TestTable where ID in (1001,1002,.). Select * from TestTable where ID in (1,2,3,4,.,1000) or ID in (1001,1002,.,2000). 標籤: ASP.NET. 訂閱: 張貼留言 (Atom). ASPNET] Export Excel with NPOI and EPPlus. ASPNET] 解決Oracle IN clause 超過1000個參數.
wupinny.blogspot.com
皮尼網前走: [ASP.NET] 解決Linq Contain 參數超過2100的錯誤
http://wupinny.blogspot.com/2011/07/aspnet-linq-contain-2100.html
ASPNET] 解決Linq Contain 參數超過2100的錯誤. 在Linq使用Contain時,必須注意參數的個數,限制為2100為上限,錯誤訊息如下:. The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100. Double dLoopCycle = (containList.Count / 2000); int loopCycle = Convert.ToInt32(Math.Ceiling(dLoopCycle) ; loopCycle = loopCycle = 0? 1 : loopCycle; List. Result = new List. TempResult = new List. ASPNET] 解決Oracle IN clause 超過1000個參數.
wupinny.blogspot.com
皮尼網前走: 七月 2011
http://wupinny.blogspot.com/2011_07_01_archive.html
ASPNET] Export Excel with NPOI and EPPlus. 使用於(Excel2003及之前的版本),可寫出Excel2003(xls),可讀Excel2003 (xls)/ Excel2007(xlsx). Http:/ npoi.codeplex.com/. Http:/ code.google.com/p/npoi/. VS2005 or VS2008 with .NET 2.0 Runtime (SP1). Vs2003 with .NET 1.1. Medium trust environment in ASP.NET. EPPlus is a .net library that reads and writes Excel 2007/2010 files using the Open Office Xml format (xlsx). 官網: http:/ epplus.codeplex.com/. Net Framwork 3.5 or higher. NPOI vs. EPPlus:比較匯出大量資料的時間. 標籤: ASP.NET. TempList = IDs...
wupinny.blogspot.com
皮尼網前走: 十二月 2010
http://wupinny.blogspot.com/2010_12_01_archive.html
Oracle]Update data from another Table. Web系統不免會有由Excel Upload的資料去更新資料表的需求,當然如果Excel資料一筆一筆的對Table做更新是不符合效益,這將造成對database的transaction過多,而且因為目前需Update的資料表資料量相當大,所以採用的方法如下:. 1Insert data in db temp table from excel data. 2update data from temp table. 上述的從Temp table取用資料Update資料表,就切入本篇的主題,可用的方法有三:. MERGE INTO bigTable b USING (SELECT col1 , col2 , col3 , col tempTable t ) t ON ( b.col = t.col) WHEN matched THEN UPDATE SET old col1 = new col1, old col2 = new col2, old col3 = new col3;. 訂閱: 文章 (Atom). Oracle]Upd...
wupinny.blogspot.com
皮尼網前走: [ASP.NET] Import Excel with linqtoexcel
http://wupinny.blogspot.com/2011/08/aspnet-import-excel-with-linqtoexcel.html
ASPNET] Import Excel with linqtoexcel. 比較了以NPOI and EPPlus匯出Excel的效能,接著就是要介紹Import Excel了,雖然NPOI也可以Import Excel2003/2007,但我認識了 linqtoexcel. LinqToExcel為32位元的dll,所以如果在64位元遇到complier的問題時,請參閱轉載自網路的 排除方法. 12290; 還有 注意事項. Linq to Excel requires any projects referencing it to be built against the x86 platform target. See this link. For detailed information on setting the platform target to x86. Note this only applies to compiling the project on x64 computers. 詳情請至活動網址 http:/ www.npochannel.net/news....
wupinny.blogspot.com
皮尼網前走: 十一月 2010
http://wupinny.blogspot.com/2010_11_01_archive.html
Oracle]處理中文亂碼 - NLS LANG設定. Select userenv('language') from dual;. 取得結果為TRADITIONAL CHINESE.TAIWAN.ZHT16BIG5. 接下來就是設定client端的NLS LANG,只要與DB Server相同,中文顯示就會正確了. 1 開始 - 執行 - regedit. 2 找出 HKEY LOCAL MACHINE SOFTWARE ORACLE. 3 NLS LANG改為TRADITIONAL CHINESE.TAIWAN.ZHT16BIG5. 這樣由這台client連到TRADITIONAL CHINESE.TAIWAN.ZHT16BIG5 的DB Server中文顯示就會是正確的。 另一個議題,單一client要連結的DB Server有多種NLS LANG,擔任Web Server的client常有這種狀況! LANG","AMERICAN AMERICA.ZHT32EUC");. 針對 單一Web Site設定連線到DB NLS LANG,. 標籤: ASP.NET.