为什么查询条件只识别一个呢?

浏览:281 发布日期:2013/01/30 分类:求助交流
$where数组数据如下:

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 "
最佳答案
评论( 相关
后面还有条评论,点击查看>>