作业七: ODM操作MongoDB知识点测评
778
等4人参与

根据下面所提供的文档数据,完成对应的练习:

// 1
{
    "_id": ObjectId("60d376bff95e00004900257b"),
    "stu_no": 1001,
    "stu_name": "李明",
    "sex": "男",
    "class_name": "三年级一班",
    "address": "希望小区",
    "grade": {
        "course_name": "语文",
        "teacher": "王老师",
        "score": 98
    },
    "phone_no": "13300000000",
    "age": 12
}

// 2
{
    "_id": ObjectId("60d376bff95e0000490025ab"),
    "stu_no": 1001,
    "stu_name": "李明",
    "sex": "男",
    "class_name": "三年级一班",
    "address": "希望小区",
    "grade": {
        "course_name": "数学",
        "teacher": "李老师",
        "score": 76
    },
    "phone_no": "13300000000",
    "age": 12
}

// 3
{
    "_id": ObjectId("60d376bff95e0000490025da"),
    "stu_no": 1001,
    "stu_name": "李明",
    "sex": "男",
    "class_name": "三年级一班",
    "address": "希望小区",
    "grade": {
        "course_name": "英语",
        "teacher": "吴老师",
        "score": 51
    },
    "phone_no": "13300000000",
    "age": 12
}

1. 完成ODM模型的搭建

2. 使用ODM统计该学生的成绩总分

我的作业
去发布

登录后即可发布作业,立即

全部作业

数据加载中...

意见反馈 帮助中心 APP下载
官方微信