The TABLE_TO_COMMA procedure converts a PL/SQL table of names into a comma-separated list of names. The PL/SQL table values are 1..n, and n+1 is NULL, which terminates the list.
Note
The DBMS_UTILITY system package of the current version of OceanBase Database does not support character sets encoded with UTF16.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only MySQL mode.
Syntax
DBMS_UTILITY.TABLE_TO_COMMA (
tab IN UNCL_ARRAY,
tablen OUT BINARY_INTEGER,
list OUT VARCHAR2);
DBMS_UTILITY.TABLE_TO_COMMA (
tab IN lname_array,
tablen OUT BINARY_INTEGER,
list OUT VARCHAR2);
Parameters
| Parameter | Description |
|---|---|
| tab | The PL/SQL table that contains the list of table names. |
| tablen | The number of tables in the PL/SQL table. |
| list | The comma-separated list of tables. |
Return value
The comma-separated list and the number of elements in the table.
