企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 查询 ### 基本查询 ~~~ $this->db->query('YOUR QUERY HERE'); ~~~ ### 查询绑定 ~~~ $sql = "SELECT * FROM some_table WHERE id = ? AND status = ? AND author = ?"; $this->db->query($sql, array(3, 'live', 'Rick')); ~~~ ### 更新数据 ~~~ $numberId = $id; $data = array('password' => $password); $where = array("id" =>$numberId); $str = $this->db->update_string('table_name', $data, $where); ~~~