method getHaving documentation in bbn\Db\Languages\Sql

Returns a string with the HAVING part of the query if there is, empty otherwise

function(array $cfg) { $res = ''; if (!empty($cfg['group_by']) && !empty($cfg['having']) && ($cond = $this->getConditions($cfg['having'], $cfg, true, 2)) ) { if (!empty($cfg['count'])) { $res .= ' WHERE ' . $cond . PHP_EOL; } else { $res .= ' HAVING ' . $cond . PHP_EOL; } } return $res; }

Returns a string with the HAVING part of the query if there is, empty otherwise BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.