日期:2014-05-18 浏览次数:20454 次
string a = TextBox3.Text; string b = path.Value; string c = TextBox5.Text; string d = TextBox2.Text; string f = TextBox4.Text; string sqlstr = "inseret into product(pid,pname,url,details,sortid) values("+"'"+a+"',"+"'"+c+"',"+"'"+b+"',"+"'"+f+"',"+"'"+d+"')"; MySqlCommand sqlcom = new MySqlCommand(sqlstr, sqlconn); sqlcom.ExecuteNonQuery();