Closed dht20 closed 4 years ago
Hello there,
You can use the Func
or Expression
object.
use ClanCats\Hydrahon\Query\Sql\Func;
$h
->table('stats')
->select(['id', new Func('GROUP_CONCAT', 'name')])
->execute();
Result:
select `id`, GROUP_CONCAT(`name`) from `stats`
im trying to do
SELECT id , GROUP_CONCAT(name)
like thisselect("id, GROUP_CONCAT(name) ")
but i getting problemes , how can i do it properly?