[求助]未将对象引用设置到对象实例
string str="server=KABEN;uid=kaben;pwd=64006294;database=manage"; conn.ConnectionString=str; string se="insert into workers(name,sex,card,age,posit) values('"+textBox1.Text+"','"+comboBox1.SelectedItem.ToString()+"','"+textBox2.Text+"','"+textBox4.Text+"','"+textBox3.Text+"')"; SqlCommand com=new SqlCommand(se,conn); com.Connection.Open(); com.ExecuteNonQuery(); com.Connection.Close();
每次运行到 string se所在的行,都报这个错误:未将对象饮用设置到对象实例。帮帮忙