<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                **查看當前Database所有的Collection** ```sql -- 使用 show collections 或者 show tables > show collections event_db > show tables event_db ``` **方式1:顯示創建集合** ```sql 語法:db.createCollection(name, options) ``` | 參數 | 默認值 | 說明 | | --- | --- | --- | | name | | 創建的集合名稱 | :-: options是可選參數,它的可選項如下 | 參數 | 默認值 | 說明 | | --- | --- | --- | | capped| false | 如果為 true,則創建固定集合。固定集合是指有著固定大小的集合,當達到最大值時,它會自動覆蓋最早的文檔。當該值為 true 時,必須指定 size 參數。 | | autoIndexId | false | 如為 true,自動在 _id 字段創建索引。默認為false。 | | size | 整數 | 為固定集合指定一個最大值,以千字節計(KB)。如果 capped 為 true,也需要指定該字段。 | | max | 整數 | 指定固定集合中包含文檔的最大數量。 | ```sql > db.createCollection( ... "mycol", ... { ... capped: true, ... autoIndexId: true, ... size: 6142800, ... max: 10000 ... } ... ) {"ok" : 1} ``` **方式2:隱式創建集合** ```sql > db.collectName.insert({"name": "employee"}) WriteResult({ "nInserted" : 1 }) ``` **刪除Collection** ```sql > db.collectName.drop() true ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看