部分代码如下,语法没错误,可以运行,label显示了“数据插入”,但数据库里却没有插入到数据,求高手指点 protected void Button3_Click(object sender, EventArgs e) { string s3 = "insert into car_info (car_type,driver,company,weight,state) values (" + TextBox4.Text + "," + TextBox5.Text + "," + TextBox6.Text + "," + TextBox7.Text + "," + TextBox8.Text + ")"; SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); con.Open(); SqlCommand cmd2 = new SqlCommand(s3, con); Label1.Text = "数据已插入"; con.Close(); }