What is the best way to remove duplicates from a datatable?

前端 未结 12 2093
醉酒成梦
醉酒成梦 2021-01-02 13:23

I have checked the whole site and googled on the net but was unable to find a simple solution to this problem.

I have a datatable which has about 20 columns and 10K

12条回答
  •  长情又很酷
    2021-01-02 13:58

    Found this on bytes.com:

    You can use the JET 4.0 OLE DB provider with the classes in the System.Data.OleDb namespace to access the comma delimited text file (using a DataSet/DataTable).

    Or you could use Microsoft Text Driver for ODBC with the classes in the System.Data.Odbc namespace to access the file using ODBC drivers.

    That would allow you to access your data via sql queries, as others proposed.

提交回复
热议问题