原创 Gridview多表頭製作

Rowpan----跨行 Colpan---跨列 TableCellCollection tcHeader = e.Row.Cells;-----申明一個表頭 tcHeader.Add(newTableHeaderCell());-----

原创 SQL中 decode()函數簡介

 decode()函數簡介:主要作用:將查詢結果翻譯成其他值(即以其他形式表現出來,以下舉例說明);使用方法:Select decode(columnname,值1,翻譯值1,值2,翻譯值2,...值n,翻譯值n,缺省值)From talb

原创 把DataTable內容導出excel並返回客戶端,修改導出中文亂碼的問題

/// <summary>     /// 把DataTable內容導出excel並返回客戶端     /// 修改導出中文亂碼的問題      public static void DataTable2Excel(System.Dat

原创 兩表拼接

public DataTable UniteTwoDataTable(refDataTable dt1, refDataTable dt2, int colNum1, int colNum2)     {        DataTable

原创 Oracle 中union的用法

UNION 指令的目的是將兩個 SQL 語句的結果合併起來,可以查看你要的查詢結果. 例如: SELECT Date FROM Store_Information UNION SELECT Date FROM Internet_Sales