datatable.select() 的Distinct 问题
asp.net
现在我想对 DataTable表share_dt中的BuildingName字段查询并去除重复值
程序参考了这里的资料
http://blog.csdn.net/livening/archive/2010/05/20/5610978.aspx
引用了第第472行的 public DataTable SelectDistinct(string tableName, DataTable sourceTable, string fieldName)
虽然有提示其中的tableName为表名,可以我始终不清楚这个表名到底是什么,是自己随意新写的还是原来就有的。
我在程序中就已知下面几个参数
share_dt 为对其查询的表(DataTable)
BuildingName 是share_dt中的一个字段
可以现在调用函数 SelectDistinct(string tableName, DataTable sourceTable, string fieldName)
时不知道tableName到底是什么?
请我我该如何调用这个函数求解?
谢谢