2019-05-23

2019-05-23  本文已影响0人  emei18

oracle多行合并一行

select username, id, LISTAGG(subject, '-') within group(order by subject) as subject, LISTAGG(score, ',') within group(order by score) as score from STUDENTSCORES group by username, id

-- Create the synonym
create or replace synonym xx_OTM_ORD_TRANSIT_DETAIL
for xxx.xx_OTM_ORD_TRANSIT_DETAIL@xxxx;

上一篇下一篇

猜你喜欢

热点阅读