array(2) {
["cteatetime"] => array(2) {
[0] => string(2) "gt"
[1] => int(0)
}
["status"] => array(2) {
[0] => string(2) "eq"
[1] => string(1) "1"
}
}
查询程序如下:
$count=$company->where($where)->count();
dump($company->getLastsql());
为什么输出的查询语句只认了一个条件呢?
string(84) "SELECT COUNT(*) AS tp_count FROM `flyphp_company` WHERE ( `status` = '1' ) LIMIT 1 "
最佳答案