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.
可以说,我有下表(即:参考表)。我想将我的结果显示为“预期表”。我怎样才能得到这个结果?任何帮助将不胜感激。我正在使用 Oracle 10g。
预期的:
SELECT Collateral_Id, LISTAGG(Commitment_Id, ',') WITHIN GROUP (ORDER BY Commitment_Id) "Commitment_Id" FROM yourTable GROUP BY Collateral_Id