我有一個像下面如何使用
結果集的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