VC下MFC实现简单的学生管理系统
删除操作
CstuDelset *m_recordset=new CstuDelset(&m_database);
CString strSQL1;
CString strSQL2;
UpdateData(TRUE);
strSQL1.Format("delete from student_grade where sID='%s'",m_stuID);
strSQL2.Format("delete from student_message where sID=%ld",atoi(m_stuID));
m_database.ExecuteSQL(strSQL1);
m_database.ExecuteSQL(strSQL2);
if(m_stuID=="")
MessageBox("删除失败");
else
MessageBox("删除信息成功!");
2022-03-12 10:53:49
2.88MB
学生管理系统
1