Created
January 28, 2010 14:24
-
-
Save jak/288785 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE function join ( p_cursor sys_refcursor, p_del varchar2 := '; ' ) | |
return varchar2 is l_value varchar2(32767); | |
l_result varchar2(32767); | |
begin loop fetch p_cursor into l_value; | |
exit when p_cursor%notfound; | |
if l_result is not null then | |
l_result := l_result || p_del; | |
end if; | |
l_result := l_result || l_value; | |
end loop; | |
close p_cursor; | |
return l_result; | |
end join; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment