private void button1_Click(object sender, EventArgs e)
        {
             //MessageBox.Show("1");
            string connStr = "Data Source=zhang-PC;Initial Catalog=ManageSystem;Integrated Security = True";
            //MessageBox.Show("2");
            string sql_1 = "insert into PlayerInfo values('" + this.textBox1.Text + "','" + this.textBox2.Text + "','" + this.comboBox1.Text + "','" + this.comboBox2.Text + "')";
            //MessageBox.Show("3");
            string sql_2 = "insert into SelectSubject(player_id,subject_name) values('" + this.textBox1.Text + "','" + this.comboBox3.Text + "')";            SqlConnection conn = new SqlConnection(connStr);
            //MessageBox.Show("4");
            SqlCommand cmd1 = new SqlCommand(sql_1, conn);
            SqlCommand cmd2 = new SqlCommand(sql_2, conn);
            //MessageBox.Show("5");
            //cmd1.ExecuteNonQuery();
            //cmd2.ExecuteNonQuery();            //MessageBox.Show(err.Message);
            MessageBox.Show("注册成功!");
            conn.Close();
           
        }当输入一组数据后,数据库里会出来差不多有20几行相同的数据。为什么啊?