Hi I have an Oracle query that I did not write and I also do not have access to run in an Oracle environment.
Could someone please explain what this query is doing please?
WITH tableName AS
( SELECT regexp_substr(fieldName,'[^,]+',1,level) as tableName
FROM (SELECT :tableName as fieldName From DUAL)
CONNECT BY LEVEL <= REGEXP_COUNT(fieldName ,'[,]')+1 )
I understand that it is creating a CTE called tableName and that the Oracle allows DUAL to be specified as a table in queries that do not need data from any tables. SO that that the above query is not pulling from any specific table.
However the remainder of the query I do not understand as I am very new to Oracle.
Any help would be appreciated I tried googling but came up blank.