我想知道如何在QueryDSL 4中制作array_agg。 我已经写了这个SQL请求:
NOLOCK
制作方法是什么
SELECT array_to_string(array_agg(id),',') as id,id_semaine_type,jour_semaine,heure_debut,heure_fin,array_to_string(array_agg(media),') AS media,array_to_string(array_agg(id_classe_type_population),') as id_classe_type_population
FROM accueil.plage_ouverture
WHERE id_semaine_type = 6
GROUP BY id_semaine_type,heure_fin
ORDER BY jour_semaine,heure_fin;
在QueryDSL中?
您有解决我问题的想法吗?
非常感谢。