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;
网友评论