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で次のことを行うのを手伝ってください。
という列のようなものがidあり、連結する必要があります
id
Id 1 2 3 4 5 6 8 9 9
返すクエリが必要です1,2,3,4,5,6,7,8,9,9
1,2,3,4,5,6,7,8,9,9
これどうやってするの?
試す
select ltrim(max(sys_connect_by_path(id, ',')), ',') from (select id, rownum t from yourtable t) connect by prior t = t - 1 start with t = 1;