日期:2014-05-18 浏览次数:20780 次
Console.WriteLine("请输入留言:"); string leavemessage = Console.ReadLine(); string sqlStr="insert admin(message) values(leavemessage)"; SqlCommand cmd = new SqlCommand(sqlStr,myCon2); SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = cmd; DataSet ds = new DataSet(); da.Fill(ds);