<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國際加速解決方案。 廣告
                查詢數據主要有如下幾種方法 1. 模型類的get靜態方法【存在返回值為對象,否則為null】 2. 通過字段查詢getByFieldname()方法 3. 根據條件查詢get(\['username' => 'root'\]) 4. where方法查詢->find() 5. where方法查詢->select() 6. 模型類的all靜態方法和select靜態方法 實操: 1. 模型類的get靜態方法【存在返回值為對象,否則為null】,通過傳遞主鍵獲取數據 ![Image](https://box.kancloud.cn/3773cd42b0d77094cfd6510e2fb874b2_1473x683.png) 效果 ![Image](https://box.kancloud.cn/fdb55c8ba31a301279dcd37a3adc5a1b_727x512.png) 1. 根據條件查詢get(\['username' => 'root'\]) 方式一: ![Image](https://box.kancloud.cn/82285dee699ca57b508940cfc16f1ca7_1270x360.png) 方式二:使用where方法傳遞(需要注意后面要通過find()方法調用一下) ![Image](https://box.kancloud.cn/e1c1d030afddf0b558b477b59e9df16c_1372x343.png) 1. 通過模型對象的字段查詢getByFieldname('查詢條件')方法 ![Image](https://box.kancloud.cn/7f8c3954a5cea3fd24b500a675e205e8_1069x341.png) 1. 模型類的where方法查詢,然后調用find()方法 ![Image](https://box.kancloud.cn/98210a63feb5cdc1346035122668217d_1148x226.png) 1. where方法查詢->select() 方式一: ![Image](https://box.kancloud.cn/e49ca93ea02b7da17abe379f8ddd82e1_1057x292.png) 方式二: ![Image](https://box.kancloud.cn/e8172643921f8701ba65dcb1f9c20160_887x257.png) 6\.模型類的all靜態方法和select靜態方法 ![Image](https://box.kancloud.cn/1538c0f4c6c35571f307c26b8fe55e2d_1321x338.png) 注意:對應all和select方法返回的數據,是一個數組,數組中的每個元素是一個模型對象,如果我們需要把他們轉換為普通的二維數組(數組中的元素也是數組) ![Image](https://box.kancloud.cn/32337a3239f0b7873d1ab0456e3805b3_1170x539.png) 效果: ![Image](https://box.kancloud.cn/ef2ed2bec45149aa48c16deaf12a4489_779x820.png)
                  <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>

                              哎呀哎呀视频在线观看