コード例 #1
0
ファイル: DB_Student.cs プロジェクト: qiyiran/StudentsManage
        public static int DelStuInfo(string stuid)
        {
            string sql = "delete from Student where StuID = '" + stuid + "'";

            return(DBAccess.ExecuteNonQuery(sql));
        }
コード例 #2
0
ファイル: DB_Student.cs プロジェクト: qiyiran/StudentsManage
        //根据id获得学生信息
        public static DataTable GetStuInfoByID(string stuid)
        {
            string sql = "select * from Student where StuID = '" + stuid + "'";

            return(DBAccess.ExecuteQueryReturnDT(sql));
        }