DataCon是自己定义的连接数据库的类
连接数据库的DataCon类的具体实现方法
string id = textBox1.Text;
string name = textBox2.Text;
string tel = textBox3.Text;
string person = textBox4.Text;
string address = textBox5.Text;
DataCon link = new DataCon();
string update = "Update message set b_id='" + id + "',b_name='"+name+ "',b_tel='"+tel+ "',b_person='" + person + "',b_adress='" + address + "'";
link.insert(update);
link.close();