$tableGateway = new \Zend\Db\TableGateway\TableGateway('user', $adapter); $select = $tableGateway->getSql()->select(); $res = $tableGateway->selectWith($select); $select->where->equalTo('col', '値'); //SELECT "user".* FROM "user" WHERE "col" = '値' $select->where->notEqualTo('col', '値') //SELECT "user".* FROM "user" WHERE "col" != '値' $select->where->greaterThan('col', '値'); //SELECT "user".* FROM "