<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding…
1.创建数据库 语法 MongoDB 创建数据库的语法格式如下: use DATABASE_NAME 如果数据库不存在,则创建数据库,否则切换到指定数据库. 1.创建数据库 > show dbs local .078GB test .078GB > use exam switched to db exam > show dbs local .078GB test .078GB 可以看到,我们刚创建的数据库 exam并不在数据库的列表中, 要显示它,我们需要向 exam数据库插入一些数据.…