Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下结果集:
ID | mark | cost | comment 1 yel 45 array 3 yel 45 tack
现在我只想有 1 行,例如:
ID | mark | cost | comment 1 yel 45 array tack
如果标记和成本相同。
关于如何做到这一点的任何想法?
select min(id), mark, cost, substr( xmlserialize( xmlagg( xmltext( concat( ' ', comment ) ) ) as varchar( 1024 ) ), 3 ) from t1 group by mark, cost;