Home > APEX_UTIL > TABLE_TO_STRING F...
Given a a PL/SQL table of type APEX_APPLICATION_GLOBAL.VC_ARR2, this function returns a delimited string separated by the supplied separator, or by the default separator, a colon (:).
Syntax
APEX_UTIL.TABLE_TO_STRING (
p_table IN APEX_APPLICATION_GLOBAL.VC_ARR2,
p_string IN VARCHAR2 DEFAULT ':')
RETURN VARCHAR2;
Parameters
Table: TABLE_TO_STRING Parameters describes the parameters available in the TABLE_TO_STRING function.
TABLE_TO_STRING Parameters
| Parameter | Description |
|---|---|
|
|
String separator. Default separator is a colon (:) |
|
|
PL/SQL table that is to be converted into a delimited string |
Example
DECLARE
l_string VARCHAR2(255);
l_vc_arr2 APEX_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE('One:Two:Three');
l_string := APEX_UTIL.TABLE_TO_STRING(l_vc_arr2);
END;