使用 MySql.Data.MySqlClient; MySqlConnection c = new MySqlConnection( "server=localhost;user id=root;database=test;password=123"); c.Open(); MySqlCommand m = new MySqlCommand("select * from qqmsg", c); MySqlDataReader r = m.ExecuteReader(); String s = ""; while (r.Read()) { s += r.GetString(0) + "
" + r.GetString(1) + "
" + r.GetString(2) + "
" + r.GetString(3) + "
"; } richTextBox1.Text = s; c.Close(); !!!获得当前数据行第1列的数据,并使用String类型