GroupConcat equivalent in SQLSubquery querydsl

541 views
Skip to first unread message

pradeep gupta

unread,
Oct 21, 2015, 9:54:45 AM10/21/15
to Querydsl
Hi all I am using nested quries in query dsl. One of the subquery is returning a single column. I want to concat all the rows of that column.

timowest

unread,
Oct 22, 2015, 1:17:51 PM10/22/15
to Querydsl
Querydsl SQL doesn't have direct support for group_concat, but you can express what you need through template expressions:

Expression<?> groupConcat = Expressions.template(String.class, "group_concat({0})", expr);
Reply all
Reply to author
Forward
0 new messages