我有一个像下面如何使用
结果集的dataset
数据集的栏目[![数据集] [1] [1]
现在我想添加IF
条件检查像低于
if(dataset rows(Usermail) == 10000){then go ahead}
这是我的代码。
DataSet ds = new DataSet();
using (SqlConnection conn = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"].ToString()))
{
SqlCommand sqlComm = new SqlCommand("GET_INWARD_REMINDER_REPORT", conn);
sqlComm.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = sqlComm;
da.Fill(ds);
if(DataSet rowchecking)
{
}
}
所以我的问题,如何检查和比较数据集列。
您需要访问行中的字段,获取其值,而不是列。 – Alex
@Alex:只有我想知道,如何实现。 – BNN