Application Express User's Guide > Oracle Application Express ... > HTMLDB_UTIL > STRING_TO_TABLE F...
STRING_TO_TABLE Function |
Previous |
Next |
Given a string, this function returns a PL/SQL array of type HTMLDB_APPLICATION_GLOBAL
.VC_ARR2
. This array is a VARCHAR2(32767)
table.
Syntax
HTMLDB_UTIL.STRING_TO_TABLE ( p_string IN VARCHAR2, p_separator IN VARCHAR2 DEFAULT ':') RETURN HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
Parameters
Table: STRING_TO_TABLE Parameters describes the parameters available in the STRING_TO_TABLE
function.
STRING_TO_TABLE Parameters
Parameter | Description |
---|---|
|
String to be converted into a PL/SQL table of type |
|
String separator. The default is a colon |
Example
DECLARE l_vc_arr2 HTMLDB_APPLICATION_GLOBAL.VC_ARR2; BEGIN l_vc_arr2 := HTMLDB_UTIL.STRING_TO_TABLE('One:Two:Three'); FOR z IN 1..l_vc_arr2.count LOOP htp.p(l_vc_arr2(z)); END LOOP; END;