DotNet2.0专题
关注DotNet,传播DotNet。
string[] temp = null;//存放已经入库的影片路径
sql= "select originalName from DelFileList order by id desc";
DataTable tb = db.getTable(sql);
if (tb.Rows.Count > 0)
{
//对重复的数据进行筛选
Hashtable ht = new Hashtable();
foreach (DataRow dr in tb.Rows)
{
string s = dr["originalName"];
if (!ht.Contains(s))
ht[s] = dr["originalName"];
}

temp = new string[ht.Count];
ht.Keys.CopyTo(temp, 0);
}
posted on 2006-07-09 22:09  InitialC  阅读(730)  评论(0)    收藏  举报