Myat_Kaung
Member
- Joined
- Aug 22, 2022
- Messages
- 6
- Programming Experience
- Beginner
Loop through specific column:
while (rdr.Read())
{
string column = rdr[1].ToString();
int columnValue = Convert.ToInt32(column);
for (--)
So The data I want to retrieve has two columns. I want to get the second column and the values in this column are in integer value. After that I want to loop through this second column and inside this loop, I will put a condition like if one of the value in second column > 10, then output something. Could anyone help me with that pls?