minG
顯示具有
Distinct
標籤的文章。
顯示所有文章
顯示具有
Distinct
標籤的文章。
顯示所有文章
2016年7月1日 星期五
C# 在 DataTable 下 Distinct
在資料庫中,語法可以這麼下
Select Distinct [欄位名稱1], [欄位名稱2] From Table1
在C# 的 DataTable 中下 Distinct,可以這麼寫
DataTable dtDistinct =
dtOri.DefaultView.ToTable(true, new string[] { "欄位名稱1", "欄位名稱2" });
較舊的文章
首頁
訂閱:
文章 (Atom)