35.24 STRING_TO_TABLE Function
Returns the split input at separator, returning a vc_arr2
.
Syntax
FUNCTION STRING_TO_TABLE (
p_str IN VARCHAR2,
p_sep IN VARCHAR2 DEFAULT ':' )
RETURN apex_application_global.vc_arr2;
Parameters
Table 35-26 STRING_TO_TABLE Parameters
Parameters | Description |
---|---|
|
The input varchar2. |
|
The separator, no regexp or split at char. Defaults to |
Example
declare
l_result apex_application_global.vc_arr2;
begin
l_result := apex_string.string_to_table('1:2:3',':');
sys.dbms_output.put_line(apex_string.table_to_string(l_result,'-'));
end;
-> 1-2-3
Parent topic: APEX_STRING