<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之旅 廣告
                ### 修改數據 > 修改數據必須帶有where條件 ~~~ /** * 更新 */ public function update() { $data = ['username' => 'mysql', 'password' => '654321', 'age' => 20]; $model = new User(); $result = $model->where(['id', '=', 1])->update($data); var_dump($model->getSql()); echo '更新影響行數:' . $result . '<br/>'; } ~~~ ~~~ /** * 修改單個字段 */ public function setField() { $model = new User(); $result = $model->where(['id', '=', 10])->setField('username', 'lucy'); echo "修改id等于10的用戶名稱為lucy:<br/>"; var_dump($result); } ~~~ ~~~ /** * 字段數字增加 */ public function increase() { $model = new User(); $result = $model->where(['id', '=', 10])->increase('age'); echo "將id等于10的用戶年齡加1:<br/>"; var_dump($result); $result = $model->where(['id', '=', 10])->increase('age', 5); echo "將id等于10的用戶年齡加5:<br/>"; var_dump($result); } ~~~ ~~~ /** * 字段數字減少 */ public function decrease() { $model = new User(); $result = $model->where(['id', '=', 10])->decrease('age'); echo "將id等于10的用戶年齡減1:<br/>"; var_dump($result); $result = $model->where(['id', '=', 10])->decrease('age', 5); echo "將id等于10的用戶年齡減5:<br/>"; var_dump($result); } ~~~
                  <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>

                              哎呀哎呀视频在线观看