System.Data.SqlClient.SqlDataReader dr; //已省略dr的初始化代码 string inf = ""; while (dr.Read()) { for (int i = 0; i < dr.FieldCount; i++) inf += dr[i].ToString() + "\t"; inf += "\n"; } dr.Close(); MessageBox.Show(inf);