adspace
How to convert comma separated string to array in pl/sql?
Answer Posted / Satish Rai
To convert a comma-separated string into an array (PL/SQL table) in PL/SQL, you can use the DBMS_UTILITY.COMMA_TO_TABLE function. Here's an example:
```
DECLARE
my_string VARCHAR2(4000) := 'value1, value2, value3';
my_table MY_TABLE%TYPE;
BEGIN
DBMS_UTILITY.COMMA_TO_TABLE(my_string, my_table);
END;
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to escape special characters in sql statements? : Sql dba
Can delete statement be rollbacked?
what are the advantages of sql ? : Sql dba
What is the current version of postgresql?
What is your daily office routine?
Can we rollback truncate?
how to use regular expression in pattern match conditions? : Sql dba
what is sql server agent? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
what is dbms? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
what is schema? : Sql dba
define sql insert statement ? : Sql dba
what is bcp? When does it used? : Sql dba
Is primary key always clustered index?