select distinct a1id||a2id||a3id,area_01||area_02||area_03,code1||code2||code3 from table1; 你想要的是类似这个形式?
用 select distinct a1id1,area_id1,code1 from (select a1id1,area_id1,code1 from t1 union all select a1id2,area_id2,code2 from t1 ..) p1
你的预期结果也贴一下;
17,377
社区成员
95,128
社区内容
加载中
试试用AI创作助手写篇文章吧