可能重複:
Is there an Oracle SQL query that aggregates multiple rows into one row?
Fast way to generate concatenated strings in OracleSQL:一列內骨料/聚集串(具有單個查詢)
一種的Oracle SQL新手問題
我有下表:
id1 A
id1 B
id1 C
id1 A
id2 A
id3 B
id3 A
我想
id1 A,B,C
id2 A
id3 B,A
我不能使用循環,我那裏有一個查詢
我使用Oracle數據庫V10(我知道這是因爲this重要)得到它是什麼。
HM我想你錯用了「類似」二字。對於我來說,只要你得到不同的值,就想分組,如果X是相同的,滑動它們並保持A(在給定行中的第4 + 5行) – Najzero
搜索連接列值Oracle ... –
@Lamak幾乎。無論如何非常感謝你。 區別:我想現在在右列中有任何重複項。 – ScepticalAstronaut