Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何翻译这个查询:
SELECT distinct(id_ville) FROM `point_location`
我尝试这样做,但它不起作用:
$c = new Criteria(); $c->add(PointLocationPeer::ID_VILLE, Criteria::DISTINCT); $c->setDistinct(); $this->villes = PointLocationPeer::doSelect($c);
尝试这样的事情:
$c = new Criteria(); $c->addSelectColumn(PointLocationPeer::ID_VILLE); $c->setDistinct(); $this->villes = PointLocationPeer::doSelect($c);