本帖最后由 freezhATsis 于 2010-03-25 23:31:44 编辑

解决方案 »

  1.   

    两个表在同一个数据库吗?如果是,直接把两句合成一句提交执行即可oleDbDataAdapter1.InsertCommand.CommandText =
                        "insert into playerInfo(player_id,player_name,player_sex,department_name) values('" + textBox1.Text + "','" + textBox2.Text + "','" + comboBox1.Text + "','" + comboBox2.Text + "')"
    + " " +
    "insert into SelectSubject(player_id,subject_name) values('" + textBox1.Text + "','" + comboBox3.Text + "')";