第 1 行: ')' 附近有语法错误。
第 1 行: ')' 附近有语法错误。
SqlConnection conn = BaseClass.DBConn.CyCon();
conn.Open();
SqlCommand cmd = new SqlCommand("select count(*) from Film where FilmName='" + textBox2.Text + "'", conn);//查询是否存在当前名字的服务员信息
int i = Convert.ToInt32(cmd.ExecuteScalar());
cmd = new SqlCommand("insert into Film(FilmID,FilmName,Actor,Director,Publisher,Content,PubDate,Sort) values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox6.Text + "','" + textBox8.Text + "','" + textBox5.Text + "','" + textBox7.Text + "',)", conn);//如果不存在,进行数据库插入
cmd.ExecuteNonQuery();
conn.Close();
BindData();
button1.Enabled = true;
button2.Enabled = false;
button3.Enabled = false;
button4.Enabled = false;
button5.Enabled = true;
button6.Enabled = false;
button7.Enabled = true;
textBox1.Enabled = false;
好烦啊,都不知道错哪了 是那里问题吗
, conn);//如果不存在,进行数据库插入