NpgsqlDataAdapter dataDa = new NpgsqlDataAdapter(sql, conn);
DataSet dataDs = new DataSet();
dataDa.Fill(dataDs,table);
DataView mDataview = new DataView(dataDs.Tables[0]);
DataTable table=mDataview.Table;