zend中取得单表一行数据
程序员文章站
2022-04-27 08:21:58
...
跳至
public function getRow($where) { $select = $this->getSelect(); $select->where($where); $select->limit(1); $result = $this->selectWith($select); if(count($result)>0) { return $result->current(); } return null; }