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);