海岛奇兵大海解说:SqlConnection Conn;

来源:百度文库 编辑:高考问答 时间:2024/05/10 06:51:35
SqlConnection Conn;
Conn=new SqlConnection(@"server=LONG-90LI8LSVJ6\AOLONG;database=movies;uid=sa;pwd=111");
Conn.Open();
string sql="delete from films11 where 内容 = '"+this.kehuanpian.Text+"'and 影片名= '"+this.Lab1.Text+"'";
SqlCommand cmd=new SqlCommand(sql,Conn);
cmd.ExecuteNonQuery();
Conn.Close();

请问你问的是什么问题?