2个回答
展开全部
private string m_sConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath("DataBase/db.mdb");
OleDbConnection con = new OleDbConnection(sConnectionString);
con.Open();
string sSql = "delete from News where ID =1";
OleCommand com = new OleCommand(sSql,con);
com.ExecuteNonQuery();
con.Close();
OleDbConnection con = new OleDbConnection(sConnectionString);
con.Open();
string sSql = "delete from News where ID =1";
OleCommand com = new OleCommand(sSql,con);
com.ExecuteNonQuery();
con.Close();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询