日期:2014-05-17 浏览次数:20763 次
string a = "select * from Messages where ID in(select max(ID) from Messages)";
DataTable dt = DbHelper.Instance.CreateDataTable(a);
string b = Convert.ToString(dt.Rows[0]["ID"]);
string c = Convert.ToString(dt.Rows[0]["UserID"]);
string d = Convert.ToString(dt.Rows[0]["Message"]);
textBox1.Text = b;
textBox2.Text = c;