/** * 按条件删除,注意这里不需要where,此处与查询不同。 * * @example $condition = array('expression' => 'id < :id', 'value' => array('id' => 10)); * @param array $condition */ public function deleteByCondition($condition) { return $this->table->deleteRows($condition); }
/** * 按条件删除,此处与查询不同。 * @param array $where * @example $where = array('expression' => 'id < :id', 'value' => array('id' => 10)); * @return bool */ public function delRow($where) { return $this->table->deleteRows($where); }