我有以下SQL查询:
从
tbl_location_manager
选择 *,其中定位在(4,5(中,然后 lctype!= 3
我已经编写了查询,其中=条件为
$sqlSelect = $this->tableGateway->getSql()->select();
$sqlSelect->where(array('locid' => '4'));
,但找不到任何解决方案((。
这是一个解决方案:
use ZendDbSelectWhere;
$where = new Where();
$where->in('locid', [4, 5]);
$sqlSelect = $this->tableGateway->getSql()->select();
$sqlSelect->where($where);