I am trying to take a varchar2 that is the input of the procedure and format it then do some calculations with the new string. The input will be a series of comma-delimited names:
Example: name,id,address
What I need is to find a way to change the above to:
CAST(name AS VARCHAR2(200)) name,
CAST(id AS VARCHAR2(200)) id,
CAST(address AS VARCHAR2(200)) address
I tried looking at REGEXP_REPLACE but I am a beginner so I don't know how to properly use regex.
(this is for Oracle SQL by the way)