xPDOQuery.having
Последнее обновление 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::having¶
Добавляет к запросу секцию HAVING, которая используется для фильтрации сгруппированных результатов после GROUP BY. Без having() вы можете группировать строки, но не можете фильтровать по агрегированным значениям.
Синтаксис¶
xPDOQuery having (mixed $conditions)
Пример¶
$query = $xpdo->newQuery('Box');
$query->groupby('color');
$query->having(array('COUNT(*):>' => 5));
Смотрите также¶
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










