摘要: 如图所示,需求是我想把两列叠加起来或拼接起来,然后用group by 去重,搜的都是concat ,或group_concat ,或sum函数,不符合需求; 后来请教同事,B哥,union 函数; 符合需求。 union 函数还自动去重,union all 是不去重的。 阅读全文
posted @ 2020-08-28 09:13 gxs-standup 阅读(1413) 评论(0) 推荐(0) 编辑