$select = array("id" => 1,"first" => 0);
$data = $this -> Count($select);
方法是:
public function Count($where){
$count = $this -> where($where) -> count();
}
为什么查出来的是整个表?
$select = array("id" => 1,"first" => 0);
$data = $this -> Count($select);
方法是:
public function Count($where){
$count = $this -> where($where) -> count();
}
为什么查出来的是整个表?
1 回答4k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
2 回答2.2k 阅读
1 回答889 阅读✓ 已解决
1 回答577 阅读✓ 已解决
var_dump(this->_sql());
查看执行的sql