xPDOQuery.distinct
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOQuery::distinct¶
Устанавливает или сбрасывает флаг DISTINCT у запроса. Передайте true (или любое истинное значение), чтобы выбирать только уникальные строки, либо false/null, чтобы сбросить флаг. Если вызвать без аргумента, он переключит текущее значение флага.
Синтаксис¶
xPDOQuery distinct ([mixed $on = null])
Пример¶
$query = $xpdo->newQuery('Box');
$query->distinct(true);
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










