SqlDataAdapter adapter = new SqlDataAdapter(SelectSql,conn); DataSet ds = new DataSet(); adapter.Fill(ds,"LogAccount"); DataTable DT = ds.Tables["LogAccount"]; 总记录数为:DT.Rows.Count
SqlDataAdapter adapter = new SqlDataAdapter(SelectSql,conn); DataSet ds = new DataSet(); adapter.Fill(ds,"LogAccount"); DataTable DT = ds.Tables["LogAccount"]; 总记录数为:DT.Rows.Count