Application Express User's Guide > Oracle Application Express ... > HTMLDB_UTIL > TABLE_TO_STRING F...
TABLE_TO_STRING Function |
Previous |
Next |
Given a a PL/SQL table of type HTMLDB_APPLICATION_GLOBAL
.VC_ARR2
, this function returns a delimited string separated by the supplied separator, or by the default separator, a colon (:).
Syntax
HTMLDB_UTIL.TABLE_TO_STRING ( p_table IN HTMLDB_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 HTMLDB_APPLICATION_GLOBAL.VC_ARR2; BEGIN l_vc_arr2 := HTMLDB_UTIL.STRING_TO_TABLE('One:Two:Three'); l_string := HTMLDB_UTIL.TABLE_TO_STRING(l_vc_arr2); END;