分组 拼接字段

select group_concat(USERIDCARDHASH  separator ';')  from (
select a.*,'1' grouid from transact a left join userinfo b on a.USERIDCARDHASH = b.USERIDCARDHASH where b.BUSI_ID is null
) aa group by grouid;
posted @ 2019-06-17 01:32  Struts-pring  阅读(251)  评论(0编辑  收藏  举报