Example #1
0
        public static int DelStuInfo(string stuid)
        {
            string sql = "delete from Student where StuID = '" + stuid + "'";

            return(DBAccess.ExecuteNonQuery(sql));
        }
Example #2
0
        //根据id获得学生信息
        public static DataTable GetStuInfoByID(string stuid)
        {
            string sql = "select * from Student where StuID = '" + stuid + "'";

            return(DBAccess.ExecuteQueryReturnDT(sql));
        }