GROUP_CONCAT(expr)

Login or register to post comments
1 reply [Last post]
Offline
Joined: 08/06/2010

concating txt elements in group clause

Added in QQuery.slass.php

class QQGroupConcat extends QQAggregationClause {
protected $strFunctionName = 'GROUP_CONCAT';
public function __toString() {
return 'QQGroupConcat Clause';
}
}

static public function GroupConcat($objNode, $strAttributeName) {
return new QQGroupConcat($objNode, $strAttributeName);
}

usage
QQ::GroupConcat(QQN::Order()->Note, 'NOTE'),

jmirancid's picture
Offline
Joined: 04/04/2011

Hi Mile, this is a great add for the QCubed core. I suggest ask if this feature can be added in the next release.

I use sometimes the function on MySQL querys but being not build in QCubed makes me do my own custom QQuerys.

This is excelent!

JMI