- 博客(2)
- 收藏
- 关注
原创 oracle定义游标cursor遍历sql查询结果,通过dbms_output.put_line在output输出
declare cursor x is with v1 as (select * from 表名 where rownum<11) select * from v1;begin for y in x loop dbms_output.put_line (y.字段名); end loop;end;
2020-09-27 10:58:09
729
原创 oracle查询出来的字段拼接
oracle查询出来的字段拼接成行: select listagg(t.sub_id , ‘,’ ) within group (order by t.cust_id) from usr_112.BC_SUBSCRIBER t where rownum < 11;
2020-09-25 15:49:36
1246
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人