在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
原来的保存function create or replace function get_area_path_name(areaId in number) return varchar2 is pathName varchar2(1000); begin select replace(to_char(wm_concat(pathname) ),',','/') into pathName from (select rs.name as pathname from rs_area rs start with rs.id=areaId connect by rs.id = prior rs.parent_id order by rs.area_type_id ); return pathName; exception when others then return ''; end get_area_path_name;
修改后: create or replace function get_area_path_name(areaId in number) return varchar2 is pathName varchar2(1000); begin select replace(to_char(LISTAGG(pathname, ',') within group(order by pathname)), ',', '/') into pathName from (select rs.name as pathname from rs_area rs start with rs.id = areaId connect by rs.id = prior rs.parent_id order by rs.area_type_id); return pathName; exception when others then return ''; end get_area_path_name;
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论