<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                查詢表達式支持大部分的SQL查詢語法,查詢表達式的使用格式: ```php where('字段名','查詢條件','表達式'); //如果為 = 則不用寫 表達式 ``` 表達式不分大小寫,支持的查詢表達式有下面幾種: | 表達式 | 含義 | | ------ | -------- | | = | 等于 | | <> | 不等于 | | > | 大于 | | >= | 大于等于 | | < | 小于 | | <= | 小于等于 | #### 等于(=) ```php Db::table('user')->where('id',1)->find(); //和下面的查詢等效 Db::table('user')->where('id',1,'=')->find(); ``` #### 不等于(<>) ```php Db::table('user')->where('id',1,'<>')->all(); ``` #### 大于(>) ```php Db::table('user')->where('id',1,'>')->all(); ``` #### 大于等于(>=) ```php Db::table('user')->where('id',1,'>=')->all(); ``` #### 小于(<) ```php Db::table('user')->where('id',10,'<')->all(); ``` #### 小于等于(<=) ```php Db::table('user')->where('id',10,'<=')->all(); ``` #### 其他支持 當然除了以上幾個基本條件外,SQL的查詢條件也會有各種復雜條件的條件,這種情況框架也會支持原生方法,你可以直接在where方法內寫入 ```php Db::table('user')->where(" `name` LIKE '%oreo' OR `name` LIKE 'php%' ")->all(); ``` 以上語句生成 ```mysql select * from oreo_test where `name` LIKE '%oreo' OR `name` LIKE 'php%' ```
                  <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>

                              哎呀哎呀视频在线观看