<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之旅 廣告
                * [ ] 功能 * 組裝查詢條件 * 場景:user 數據庫的 user_account 表只有 3 條數據,數據為: user_account 表 | uid | username | | :---: | :---: | | 1 | 張三 | | 2 | 李四 | | 3 | 隔壁老王 | * [ ] where方法的參數支持字符串和數組 * [ ] 字符串條件 * 查詢用戶名包含老王,并且用戶ID大于1的所有用戶記錄 ~~~ $where = "username like `'%老王%' and uid > 1"; $data = mysql\User::table('account')->where( $where )->select(); ~~~ * [ ] 數組條件 * 查詢用戶名包含老王,并且用戶ID大于1的所有用戶記錄 ~~~ $where = array( 'uid[>]' => 1, 'username[like]' => '老王', ); $data = mysql\User::table('account')->where( $where )->select(); ~~~ 查詢結果: ~~~ array( array( 'uid' => 3, 'username' => '隔壁老王', ), ); ~~~ * [ ] 復雜組合條件 * 查詢用戶名包含老王且用戶ID大于1,或者用戶ID小于等于3的所有用戶記錄 ~~~ $where = array( 'or' => array( 'uid[<=]' => 3, 'and' => array( 'uid[>]' => 1, 'username[like]' => '老王', ), ), ); $data = mysql\User::table('account')->where($where)->select(); ~~~ * 查詢用戶名包含老王且用戶ID大于1,或者用戶ID小于等于3,或者用戶ID大于1且用戶名是李四的所有用戶記錄 ~~~ $where = array( 'or' => array( 'uid[<=]' => 3, 'and' => array( 'uid[>]' => 1, 'username[like]' => '老王', ), ), 'or1' => array( 'uid[>]' => 1, 'usernmae' => '李四', ), ); $data = mysql\User::table('account')->where($where)->select(); ~~~ * 查詢表達式含義 | 表達式符號 | 表達式含義 | | :---: | :---: | | [not] in | 范圍查詢 | | [not] like | 模糊查詢 | | [not] bet | 區間查詢 | | [not] es | [NOT] EXISTS條件 | | .= | 字段匹配 | * [ ] 注意事項 * 不支持多次連貫調用where,如果多次連貫調用,以最后一次調用為準 * 多個 and,然后又是同一級,可以在以下字符串中選擇 ~~~ and、and1、and2、and3、and4、and5、and6、and7、and8、and9、&& ~~~ * 多個 or,然后又是同一級,可以在以下字符串中選擇 ~~~ or、or1、or2、or3、or4、or5、or6、or7、or8、or9、|| ~~~
                  <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>

                              哎呀哎呀视频在线观看