我想在每个Label中显示员工ID的最后4条记录,怎么办???
String strSQL = @"SELECT * FROM staff";
SqlCommand myCommand = new SqlCommand(strSQL, myConn);
SqlDataReader myDataReader = myCommand.ExecuteReader();
while (myDataReader.Read())
{
Label1.Text = myDataReader["staffID"].ToString();
Label2.Text = myDataReader["staffID"].ToString();
Label3.Text = myDataReader["staffID"].ToString();
Label4.Text = myDataReader["staffID"].ToString();
}