System.Data.OleDb.OleDbException: 无法从指定的数据表中删除
System.Data.OleDb.OleDbException: 无法从指定的数据表中删除。
源错误:
行 34: conn.Open();
行 35: comm = new OleDbCommand(sql,conn);
行 36: comm.ExecuteNonQuery();
行 37: // sql = "delete from news_class where id="+id;
行 38: // comm = new OleDbCommand(sql,conn);
参考答案:估计很有可能是有外键约束