How to convert comma separated string to array in pl/sql?
Answer / 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 |
What are the different datatypes available in PL/SQL?
Can we perform dml on view?
What are the sql aggregate functions?
Explain table and field in sql?
what is acid property in database? : Sql dba
What is pl sql code?
How do you update a table in sql?
Show the cursor attributes of pl/sql.
How do I remove sql plus from windows 10?
What is your daily office routine?
What are the types of subqueries?
mail-id table contains two columns(email_id,userid) it contains different types of mail-ids,and no of users. here username length is differ na,(ex- tamil@yahoo.com,joshua@hotmail.com like) now i want to fetch the email-ids only starting from '@' (ex-@gmail.com,@yahoo.com,@hotmail.com
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)